ID: 46222
Updated by: [EMAIL PROTECTED]
Reported By: [EMAIL PROTECTED]
-Status: Open
+Status: Critical
Bug Type: Scripting Engine problem
Operating System: Any
PHP Version: 5.2.6
Previous Comments:
------------------------------------------------------------------------
[2008-10-03 04:47:28] [EMAIL PROTECTED]
Ran it under:
PHP 5.3.0alpha3-dev (cli) (built: Oct 3 2008 00:09:28) (DEBUG)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2008 Zend Technologies
Got:
Array
(
[d2] => hello
)
[Fri Oct 3 00:19:06 2008] Script: '-'
/Users/gwynne/src/php-src/cvs/php-5.3/ext/spl/spl_array.c(354) :
Freeing 0x00C1419C (20 bytes), script=-
[Fri Oct 3 00:19:06 2008] Script: '-'
/Users/gwynne/src/php-src/cvs/php-5.3/Zend/zend_execute.c(932) :
Freeing 0x00C142B8 (44 bytes), script=-
/Users/gwynne/src/php-src/cvs/php-5.3/Zend/zend_API.c(930) : Actual
location (location was relayed)
Last leak repeated 1 time
[Fri Oct 3 00:19:06 2008] Script: '-'
/Users/gwynne/src/php-src/cvs/php-5.3/Zend/zend_hash.c(247) : Freeing
0x00C14364 (38 bytes), script=-
[Fri Oct 3 00:19:06 2008] Script: '-'
/Users/gwynne/src/php-src/cvs/php-5.3/Zend/zend_execute.c(727) :
Freeing 0x00C143BC (20 bytes), script=-
[Fri Oct 3 00:19:06 2008] Script: '-'
/Users/gwynne/src/php-src/cvs/php-5.3/Zend/zend_variables.h(45) :
Freeing 0x00C14400 (6 bytes), script=-
/Users/gwynne/src/php-src/cvs/php-5.3/Zend/zend_variables.c(120) :
Actual location (location was relayed)
=== Total 6 memory leaks detected ===
------------------------------------------------------------------------
[2008-10-03 03:57:49] [EMAIL PROTECTED]
Description:
------------
ArrayObject appears to corrupt the symbol table
Checked it with Valgrind and didn't see anything, but haven't checked
the code yet. Appears to be a problem in both 5.2 and 5.3.
Reproduce code:
---------------
$test = new ArrayObject();
$test['d1']['d2'] = 'hello';
print_r($test3['mmmmm']);
Expected result:
----------------
nothing
Actual result:
--------------
Array
(
[d2] => hello
)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46222&edit=1