#31177 [Ver]: Memory leak
| From: | sniper@php.net | Date: | Sun, 19 Jun 2005 00:25:32 +0000 |
| Subject: | #31177 [Ver]: Memory leak | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-80616@lists.php.net to get a copy of this message | ||
ID: 31177
Updated by: sniper@php.net
Reported By: guth at fiifo dot u-psud dot fr
Status: Verified
Bug Type: Zend Engine 2 problem
Operating System: *
-PHP Version: 5CVS-2005-06-17
+PHP Version: 5CVS-2005-06-19
New Comment:
/usr/src/php/php5/Zend/zend_vm_execute_call.h(382) : Freeing
0x087BE894 (16 bytes), script=t.php
=== Total 1 memory leaks detected ===
Previous Comments:
------------------------------------------------------------------------
[2005-03-29 00:49:16] sniper@php.net
/usr/src/php/php5/Zend/zend_vm_execute.h(370) : Freeing 0x08FBAECC (16
bytes), script=t.php
=== Total 1 memory leaks detected ===
------------------------------------------------------------------------
[2005-01-07 18:56:57] sniper@php.net
/usr/src/web/php/php5/Zend/zend_vm_execute.h(350) : Freeing 0x0880A664
(16 bytes)
------------------------------------------------------------------------
[2004-12-18 10:41:02] guth at fiifo dot u-psud dot fr
Description:
------------
The following code produces a memory leak :
/usr/src/php-5.0.3RC1/Zend/zend_execute.c(3255) : Freeing 0x0816FB6C
(16 bytes), script=/www/test3.php
=== Total 1 memory leaks detected ===
Reproduce code:
---------------
<?php
class DbGow {
public function query() {
throw new Exception;
}
public function select() {
return new DbGowRecordSet($this->query());
}
}
class DbGowRecordSet {
public function __construct($resource) {
}
}
$db = new DbGow;
try {
$rs = $db->select();
}
catch(Exception $e) {
}
?>
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=31177&edit=1