[TYPO3-core] RFC #15644: Replace magic numbers for shortcut_mode with class constants

Steffen Kamper info at sk-typo3.de
Tue Sep 7 00:07:23 CEST 2010


Hi,

Ernesto Baschny [cron IT] schrieb:
> 
> If you do an "sql_fetch_assoc()" (like it is done here to get $row), you
> get an array full of strings, regardless of the field type in the DB. So
> a strict check like:
> 


you are right, i checked it. Don't understand why though, it's not 
documented in php docs. Do you know where this is documented?

If so, shouldn't the constants are strings because they are used for 
this check? So compare a string with int doesn't make big sense.

vg Steffen


More information about the TYPO3-team-core mailing list