ID:               20865
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Closed
 Bug Type:         Unknown/Other Function
 Operating System: XP/IIS
 PHP Version:      4.2.3
 New Comment:

This bug has been fixed in CVS.

In case this was a PHP problem, snapshots of the sources are packaged
every three hours; this change will be in the next snapshot. You can
grab the snapshot at http://snaps.php.net/.
 
In case this was a documentation problem, the fix will show up soon at
http://www.php.net/manual/.

In case this was a PHP.net website problem, the change will show
up on the PHP.net site and on the mirror sites in short time.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------

[2002-12-06 11:16:53] [EMAIL PROTECTED]

this is an self explanatory bug.

RUN THIS SCRIPT

<?php

$myarray = array(1, 2, 3);

$myarray[NULL] = "the null value";

print_r($myarray); //output includes [] => "the null value"

// can reference the null indexed value without problems

//The bug is in this function:
if (array_key_exists(NULL, $myarray))
{
   echo "you won't see this output<BR>\n";
}
//generates warning and returns FALSE

?>

I found the bug on redhat 7.3/apache.1.3.x with PHP verison 4.1.X but
i
reproduced the same behaviour on the submitted platform (PHP4.2.3) to
comply with this bug report form.

------------------------------------------------------------------------

[2002-12-06 11:14:21] [EMAIL PROTECTED]

this is an self explanatory bug.

RUN THIS SCRIPT

<?php

$myarray = array(1, 2, 3);

$myarray[NULL] = "the null value";

print_r($myarray); //output includes [] => "the null value"

// can reference the null indexed value without problems

//The bug is in this function:
$result = array_key_exists(NULL, $myarray) //generates warning and
returns FALSE;

?>

I found the bug on redhat 7.3/apache.1.3.x with PHP verison 4.1.X but i
reproduced the same behaviour on the submitted platform (PHP4.2.3) to
comply with this bug report form.





------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=20865&edit=1

Reply via email to