Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7081 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 60483 invoked by uid 1010); 13 Jan 2004 23:42:51 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 60459 invoked from network); 13 Jan 2004 23:42:51 -0000 Received: from unknown (HELO edwardbear.org) (216.179.74.133) by pb1.pair.com with SMTP; 13 Jan 2004 23:42:51 -0000 Received: by edwardbear.org via sendmail from stdin id (Debian Smail3.2.0.115) Tue, 13 Jan 2004 18:42:25 -0500 (EST) Date: Tue, 13 Jan 2004 18:42:25 -0500 To: internals@lists.php.net Message-ID: <20040113234225.GI23361@bumblebury.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="zbGR4y+acU1DwHSi" Content-Disposition: inline User-Agent: Mutt/1.5.4i Subject: Leak Script From: sterling@php.net (Sterling Hughes) --zbGR4y+acU1DwHSi Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hey, The attached script gives 10 leaks when PHP5 is compiled with --enable-debug. These problems are also related to Bug #26765, I'll be taking a look at it, unless someone knows the cause already. The leaks caused when running it are: /home/sterling/work/php/php-src/Zend/zend_execute.c(2840) : Freeing 0x40162A30 (16 bytes), script=t.php /home/sterling/work/php/php-src/Zend/zend_hash.c(236) : Freeing 0x401629CC (44 bytes), script=t.php Last leak repeated 1 time /home/sterling/work/php/php-src/Zend/zend_execute.c(3094) : Freeing 0x40162968 (44 bytes), script=t.php /home/sterling/work/php/php-src/Zend/zend_API.c(720) : Actual location (location was relayed) Last leak repeated 1 time /home/sterling/work/php/php-src/Zend/zend_objects.c(88) : Freeing 0x40162924 (12 bytes), script=t.php Last leak repeated 1 time /home/sterling/work/php/php-src/Zend/zend_execute.c(3093) : Freeing 0x401628E0 (16 bytes), script=t.php /home/sterling/work/php/php-src/Zend/zend_API.c(721) : Freeing 0x4016272C (32 bytes), script=t.php /home/sterling/work/php/php-src/Zend/zend_hash.c(157) : Actual location (location was relayed) Last leak repeated 1 time === Total 10 memory leaks detected === -Sterling --zbGR4y+acU1DwHSi Content-Type: application/x-httpd-php Content-Disposition: attachment; filename="t.php" Content-Transfer-Encoding: quoted-printable value =3D new GenericObject($this);=0A }=0A}=0A=0Aclass = GenericObject {=0A public $internal;=0A=0A function __construct($instance) = {=0A $this->internal =3D $instance;=0A }=0A}=0A=0A$o =3D new InstanceConta= iner();=0A?>=0A --zbGR4y+acU1DwHSi--