Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:7758 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90767 invoked by uid 1010); 11 Feb 2004 16:28:36 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 90699 invoked from network); 11 Feb 2004 16:28:35 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 11 Feb 2004 16:28:35 -0000 Received: (qmail 26939 invoked from network); 11 Feb 2004 16:28:33 -0000 Received: from guardian.zend.office (HELO andi-laptop.zend.com) (10.1.1.4) by int.zend.com with SMTP; 11 Feb 2004 16:28:33 -0000 Message-ID: <5.1.0.14.2.20040211182811.02c0eb78@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 11 Feb 2004 18:28:31 +0200 To: Pierre-Alain Joye ,internals@lists.php.net In-Reply-To: <20040210132930.38bae243@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] sxe, leaks while reading attributes prop without assign it to a var From: andi@zend.com (Andi Gutmans) References: <20040210132930.38bae243@localhost.localdomain> Fix being submitted as I type. Thanks for the good reproducing script. Andi At 01:29 PM 2/10/2004 +0100, Pierre-Alain Joye wrote: >Hello, > >Maybe this usage is wrong but it should not leak: > >$xml =<< > > Text1 > > >EOF; >$sxe = simplexml_load_string($xml); >$sxe->attributes; >?> ># php5 sxe_leak.php >/home/paj/cvs/builds/php5/ext/simplexml/simplexml.c(187) : Freeing >0x408DE780 (16 bytes), script=sxe_leak.php=== Total 1 memory leaks >detected === > >$foo = $sxe->attributes; does not leak. > >hth > >pierre > >-- >PHP Internals - PHP Runtime Development Mailing List >To unsubscribe, visit: http://www.php.net/unsub.php