ID: 43164
Updated by: [EMAIL PROTECTED]
Reported By: felipensp at gmail dot com
-Status: Assigned
+Status: Feedback
Bug Type: Scripting Engine problem
Operating System: Linux
PHP Version: 5.3CVS-2007-10-31 (snap)
Assigned To: dmitry
New Comment:
I don't see where the problem is. It looks like both PHP_5_2 and
PHP_5_3 work proper (except of memory leaks in PHP_5_2). Expectations
for the second and third cases in original post are wrong.
Previous Comments:
------------------------------------------------------------------------
[2008-02-15 00:07:12] [EMAIL PROTECTED]
Oh..I forgot the original problem, that still exists, just the leaks
are gone now in PHP_5_3.
------------------------------------------------------------------------
[2008-02-15 00:05:50] [EMAIL PROTECTED]
This seems to be fixed for PHP 5.3, but it still happens with PHP 5.2
(latest CVS), can you check whether it's fixable? Maybe some patch
wasn't MFH'd?
------------------------------------------------------------------------
[2007-11-01 09:23:39] [EMAIL PROTECTED]
Same result with all branches: HEAD/PHP_5_3/PHP_5_2
------------------------------------------------------------------------
[2007-11-01 09:22:15] [EMAIL PROTECTED]
A bit different result:
object(foo)#1 (1) {
["a"]=>
&array(1) {
[0]=>
&array(1) {
[0]=>
*RECURSION*
}
}
}
object(foo)#1 (1) {
["a"]=>
array(1) {
[0]=>
array(0) {
}
}
}
array(1) {
[0]=>
array(1) {
[0]=>
*RECURSION*
}
}
array(1) {
[0]=>
&array(1) {
[0]=>
&array(1) {
[0]=>
*RECURSION*
}
}
}
And it leaks too:
[Thu Nov 1 11:21:24 2007] Script: 't.php'
/home/jani/src/php-5.3/Zend/zend_vm_execute.h(18896) : Freeing
0x0A62D848 (44 bytes), script=t.php
/home/jani/src/php-5.3/Zend/zend_API.c(911) : Actual location (location
was relayed)
Last leak repeated 3 times
[Thu Nov 1 11:21:24 2007] Script: 't.php'
/home/jani/src/php-5.3/Zend/zend_execute.c(852) : Freeing 0x0A62DBD0
(16 bytes), script=t.php
Last leak repeated 1 time
[Thu Nov 1 11:21:24 2007] Script: 't.php'
/home/jani/src/php-5.3/Zend/zend_execute.c(1093) : Freeing 0x0A62DC60
(35 bytes), script=t.php
/home/jani/src/php-5.3/Zend/zend_hash.c(388) : Actual location
(location was relayed)
Last leak repeated 1 time
=== Total 8 memory leaks detected ===
------------------------------------------------------------------------
[2007-10-31 16:34:19] crescentfreshpot at yahoo dot com
Works fine for me.
PHP 5.2.1 (cli) (built: Feb 7 2007 23:11:26)
Copyright (c) 1997-2007 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2007 Zend Technologies
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/43164
--
Edit this bug report at http://bugs.php.net/?id=43164&edit=1