#46160 [Opn->Csd]: SPL - Memory leak when exception is throwed in offsetSet method
| From: | felipe@php.net | Date: | Tue, 23 Sep 2008 12:06:20 +0000 |
| Subject: | #46160 [Opn->Csd]: SPL - Memory leak when exception is throwed in offsetSet method | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-129209@lists.php.net to get a copy of this message | ||
ID: 46160
Updated by: felipe@php.net
Reported By: felipe@php.net
-Status: Open
+Status: Closed
Bug Type: SPL related
PHP Version: 5.3CVS-2008-09-23 (CVS)
Assigned To: colder
New Comment:
This bug has been fixed in CVS.
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/.
Thank you for the report, and for helping us make PHP better.
Previous Comments:
------------------------------------------------------------------------
[2008-09-23 11:40:06] felipe@php.net
Description:
------------
A simple detail, see the patch:
http://felipe.ath.cx/diff/spl-offsetset.diff
Reproduce code:
---------------
<?php
try {
$x = new splqueue;
$x->offsetSet(0, 0);
} catch (Exception $e) { }
Actual result:
--------------
==25461== 20 bytes in 1 blocks are definitely lost in loss record 2 of
4
==25461== at 0x4021620: malloc (vg_replace_malloc.c:149)
==25461== by 0x83B9AD8: ZEND_SEND_VAL_SPEC_CONST_HANDLER
(zend_vm_execute.h:1691)
==25461== by 0x83B764B: execute (zend_vm_execute.h:104)
==25461== by 0x8397166: zend_execute_scripts (zend.c:1197)
==25461== by 0x8345947: php_execute_script (main.c:2080)
==25461== by 0x841F6A2: main (php_cli.c:1130)
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=46160&edit=1