From: dreeh at ets-online dot de
Operating system: Linux
PHP version: 4.3.10
PHP Bug Type: Scripting Engine problem
Bug description: NULL is saved as 0 in variables
Description:
------------
when i assign NULL to a variable, it's saved as 0.
see my example...
Reproduce code:
---------------
$variable[0] = NULL;
$variable[1] = null;
$variable[2] = 0;
$variable[3] = "";
Expected result:
----------------
i'm expecting:
Array
(
[0] =>
[1] =>
[2] => 0
[3] =>
)
Actual result:
--------------
i'm getting this:
Array
(
[0] => 0
[1] =>
[2] => 0
[3] =>
)
--
Edit bug report at http://bugs.php.net/?id=32020&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=32020&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=32020&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=32020&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=32020&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=32020&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=32020&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=32020&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=32020&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=32020&r=support
Expected behavior: http://bugs.php.net/fix.php?id=32020&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=32020&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=32020&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=32020&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=32020&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=32020&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=32020&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=32020&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=32020&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=32020&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=32020&r=mysqlcfg