[development] Notice

Karoly Negyesi karoly at negyesi.net
Tue Mar 27 15:04:04 UTC 2007


Hi,

Drupal core is now E_NOTICE free or it's supposed to be.

a) Please file separate issues if you find any. And drop me a mail about  
them.
b) Do not introduce notices with your patches. If you want to write if  
($foo) or $foo ? use if(!empty($foo)).
c) if (count($foo)) and if (sizeof($foo)) are much slower than if  
(!empty($foo))

empty and isset are the same speed and do not throw notices. if something  
is not set or NULL, then isset is TRUE. if something is not set or NULL or  
empty array, 0 or '' or '0'  then empty is TRUE.

Regards,

NK


More information about the development mailing list