#32020 [Opn->Bgs]: NULL is saved as 0 in variables

From: Date: Fri, 18 Feb 2005 15:39:51 +0000
Subject: #32020 [Opn->Bgs]: NULL is saved as 0 in variables
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-74275@lists.php.net to get a copy of this message
ID: 32020 Updated by: tony2001@php.net Reported By: dreeh at ets-online dot de -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Linux PHP Version: 4.3.10 New Comment: Do not file bugs when you have Zend extensions (zend_extension=) loaded. Examples are Zend Optimizer, Zend Debugger, Turck MM Cache, APC, Xdebug and ionCube loader. These extensions often modify engine behavior which is not related to PHP itself. That's eAccelerator bug and it has nothing to do with PHP itself. Previous Comments: ------------------------------------------------------------------------ [2005-02-18 14:34:11] dreeh at ets-online dot de 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 ------------------------------------------------------------------------ [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

« previous php.bugs (#74275) next »