#34127 [NEW]: Problems in SimpleXML object

From: Date: Sun, 14 Aug 2005 12:30:34 +0000
Subject: #34127 [NEW]: Problems in SimpleXML object
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-83554@lists.php.net to get a copy of this message
From: alesegala at users dot sourceforge dot net Operating system: Windows XP Pro SP2 PHP version: 5.0.4 PHP Bug Type: SimpleXML related Bug description: Problems in SimpleXML object Description: ------------ I parsed an XML file with SimpleXML (I used simplexml_load_file()) and I stored it into $xml. You can view the object (printed using var_dump()) here: http://phpfi.com/74016 I needed to copy the array "album" (only that array) into $album, so I did $album = $xml->album; . At this point $album didn't contain all the array, but only the first element: object(SimpleXMLElement)#3 (4) { ["id"]=> string(1) "2" ["parent_id"]=> string(1) "3" ["name"]=> string(13) "Test subalbum" ["description"]=> object(SimpleXMLElement)#5 (0) { } } I'm using Windows XP Pro SP2, Apache 2.0.53, PHP 5.0.4, SimpleXML 1.139.2.4 (I took the dll from the archive pecl-5.0.4). -- Edit bug report at http://bugs.php.net/?id=34127&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34127&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34127&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34127&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34127&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34127&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34127&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34127&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34127&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34127&r=support Expected behavior: http://bugs.php.net/fix.php?id=34127&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34127&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34127&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34127&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34127&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34127&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34127&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34127&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34127&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34127&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34127&r=mysqlcfg

« previous php.bugs (#83554) next »