sxe, leaks while reading attributes prop without assign it to a var

From: Date: Tue, 10 Feb 2004 12:29:30 +0000
Subject: sxe, leaks while reading attributes prop without assign it to a var
Groups: php.internals 
Request: Send a blank email to internals+get-7696@lists.php.net to get a copy of this message
Hello, Maybe this usage is wrong but it should not leak: <?php $xml =<<<EOF <people type="foo"> <person name="Joe"> Text1 </person> </people> 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

« previous php.internals (#7696) next »