cvs: php-src /ext/simplexml/tests bug27010.phpt

From: Date: Thu, 22 Jan 2004 21:55:10 +0000
Subject: cvs: php-src /ext/simplexml/tests bug27010.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-25823@lists.php.net to get a copy of this message
helly Thu Jan 22 16:55:10 2004 EDT Added files: /php-src/ext/simplexml/tests bug27010.phpt Log: Add new test http://cvs.php.net/co.php/php-src/ext/simplexml/tests/bug27010.phpt?r=1.1&p=1 Index: php-src/ext/simplexml/tests/bug27010.phpt +++ php-src/ext/simplexml/tests/bug27010.phpt --TEST-- #27010: segfault and node text not displayed when returned from children() --FILE-- <?php $xml=<<<EOF <drinks xmlns:hot="http://www.example.com/hot"> <hot:drink><hot:name>Coffee</hot:name></hot:drink> <hot:drink><hot:name>Tea</hot:name></hot:drink> <drink><name>Cola</name></drink> <drink><name>Juice</name></drink> </drinks> EOF; $sxe = simplexml_load_string($xml); foreach ($sxe as $element_name => $element) { print "$element_name is $element->name\n"; } foreach ($sxe->children('http://www.example.com/hot') as $element_name => $element) { print "$element_name is $element->name\n"; } ?> ===DONE=== --EXPECT-- drink is Cola drink is Juice drink is Coffee drink is Tea ===DONE===

« previous php.cvs (#25823) next »