PHP :: Bug #31177 :: Memory leak
| Bug #31177 | Memory leak | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Submitted: | 2004-12-18 10:41 UTC | Modified: | 2005-10-20 10:17 UTC |
|
||||||||||
| From: | guth at fiifo dot u-psud dot fr | Assigned: | dmitry (profile) | |||||||||||
| Status: | Closed | Package: | Scripting Engine problem | |||||||||||
| PHP Version: | 5CVS-2005-06-23 | OS: | * | |||||||||||
| Private report: | No | CVE-ID: | None | |||||||||||
[2004-12-18 10:41 UTC] 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) {
}
?>
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2005-01-07 18:56 UTC] sniper@php.net
[2005-03-29 00:49 UTC] sniper@php.net