ID: 25547
Updated by: [EMAIL PROTECTED]
Reported By: cschneid at cschneid dot com
-Status: Open
+Status: Assigned
Bug Type: Scripting Engine problem
Operating System: *
-PHP Version: Irrelevant
+PHP Version: 4.3.4-dev, 5.0.0b2-dev
Assigned To: helly
Previous Comments:
------------------------------------------------------------------------
[2003-09-15 13:37:55] cschneid at cschneid dot com
Description:
------------
Error handler seems to destroy array indices if called due
to a undefined array index generated by a function.
Reproduce code:
---------------
function handler($errno, $errstr, $errfile, $errline)
{
$test = "aaa";
}
set_error_handler('handler');
$output[trim("bbbbbbb")]++;
print_r($output);
Expected result:
----------------
Array
(
[bbbbbbb] => 1
)
Actual result:
--------------
Array
(
[aaa] => 1
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25547&edit=1