|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2005-01-07 18:56 UTC] sniper@php.net
[2005-03-29 00:49 UTC] sniper@php.net
[2005-10-20 10:17 UTC] dmitry@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 22:00:01 2025 UTC |
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) { } ?>