[TYPO3-core] RFC: minor optimisation of getRecordRaw()

Martin Kutschker Martin.Kutschker at n0spam-blackbox.net
Fri Dec 1 11:20:08 CET 2006


Dmitry Dulepov schrieb:
> 
> By the way, I had an idea to add a call to devLog to sql_fetch_assoc() 
> function in case if passed $res is not valid. It could use 
> debug_backtrace() (PHP>=4.3) to show who passed bad $res. Thus helps 
> locating the problem much easier. While I had to put 
> debug_print_backtrace() several times locally to discover problem 
> origins, I never managed to make a good patch for it due to lack of time :)

OT: On my dev machine debug_backtrace() hangs after our sysadmin migrated 
to a 64-bit Linux kernel. Everything else is fine. Ha anyone a clue?

>> Fine with me, but we should define whether we want NULL (your 
>> suggestion) or FALSE (usual PHP behaviour) for array returning functions.
> 
> I prefer "false". With "false" I can do this:

I'm also for "false".

Masi


More information about the TYPO3-team-core mailing list