From: zy at adels dot zp dot ua Operating system: All PHP version: 5.2.5 PHP Bug Type: Feature/Change Request Bug description: PHP should treat NULL values like SQL does
Description: ------------ Currently NULL values when used as arguments of math and comparision operations are simply converted to zero. So there is no difference between using NULL, false, 0 - this is a useless redundancy while important functionality is missing - to tread NULL values as SQL treats them. For example: NULL * $anything should be NULL, instead of 0 NULL + $anything should be NULL, instead of $anything NULL == NULL should be false, while NULL === NULL should be true If PHP has NULL value it should be used properly. Expected result: ---------------- see above -- Edit bug report at http://bugs.php.net/?id=44099&edit=1 -- Try a CVS snapshot (PHP 4.4): http://bugs.php.net/fix.php?id=44099&r=trysnapshot44 Try a CVS snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=44099&r=trysnapshot52 Try a CVS snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=44099&r=trysnapshot53 Try a CVS snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=44099&r=trysnapshot60 Fixed in CVS: http://bugs.php.net/fix.php?id=44099&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=44099&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=44099&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=44099&r=needscript Try newer version: http://bugs.php.net/fix.php?id=44099&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=44099&r=support Expected behavior: http://bugs.php.net/fix.php?id=44099&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=44099&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=44099&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=44099&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=44099&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=44099&r=dst IIS Stability: http://bugs.php.net/fix.php?id=44099&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=44099&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=44099&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=44099&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=44099&r=mysqlcfg