#32020 [Fbk->Opn]: NULL is saved as 0 in variables
| From: | dreeh at ets-online dot de | Date: | Fri, 18 Feb 2005 13:34:13 +0000 |
| Subject: | #32020 [Fbk->Opn]: NULL is saved as 0 in variables | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-77279@lists.php.net to get a copy of this message | ||
ID: 32020
User updated by: dreeh at ets-online dot de
Reported By: dreeh at ets-online dot de
-Status: Feedback
+Status: Open
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 4.3.10
New Comment:
i can reproduce it.
the problem ist only existent, if
- i run php with normal php-sourcecode files
- i run php with eaccelerator with (eaccelerator-encoded) php-compiled
files
the problem is not repuducable, if
- i run php with eaccelerator and normal php-sourcecode files
Previous Comments:
------------------------------------------------------------------------
[2005-02-18 14:14:55] tony2001@php.net
Please try using this CVS snapshot:
http://snaps.php.net/php4-STABLE-latest.tar.gz
For Windows:
http://snaps.php.net/win32/php4-win32-STABLE-latest.zip
Can't reproduce.
------------------------------------------------------------------------
[2005-02-18 13:50:14] dreeh at ets-online dot de
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 this bug report at http://bugs.php.net/?id=32020&edit=1