[TYPO3-core] RFC #11746: speed up function t3lib_BEfunc::isRecordLocked()

Rupert Germann rupi at gmx.li
Wed Aug 19 12:02:46 CEST 2009


Steffen Kamper schrieb:
> Hi Rupi,
> 
> good catch!

yes, cachegrind rocks!!

> +1 by reading and testing
> 
> btw - should the return be tested also?

yes

> return isset($LOCKED_RECORDS[$table.':'.$uid]) ? 
> $LOCKED_RECORDS[$table.':'.$uid] : array();

that will not work, because currently the function is expected to return 
  nothing when there's no entry. You're returning an array - that's not 
nothing ;-)


greets
rupert



More information about the TYPO3-team-core mailing list