#50880 [NEW]: SimpleXML parser error in example

From: Date: Fri, 29 Jan 2010 11:47:48 +0000
Subject: #50880 [NEW]: SimpleXML parser error in example
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-3804@lists.php.net to get a copy of this message
From: kotnick at gmail dot com Operating system: Ubuntu 9.10 PHP version: Irrelevant PHP Bug Type: Documentation problem Bug description: SimpleXML parser error in example Description: ------------ Example causes SimpleXML error on PHP 5.2.10. Reproduce code: --------------- --- From manual page: simplexmlelement.attributes#Examples --- Expected result: ---------------- name="one" game="lonely" Actual result: -------------- Warning: simplexml_load_string(): Entity: line 1: parser error : Specification mandate value for attribute b in /home/kotnik/xmltest.php on line 8 Call Stack: 0.0003 107144 1. {main}() /home/kotnik/xmltest.php:0 0.0003 107520 2. simplexml_load_string() /home/kotnik/xmltest.php:8 Warning: simplexml_load_string(): <a xmlns:b> in /home/kotnik/xmltest.php on line 8 Call Stack: 0.0003 107144 1. {main}() /home/kotnik/xmltest.php:0 0.0003 107520 2. simplexml_load_string() /home/kotnik/xmltest.php:8 Warning: simplexml_load_string(): ^ in /home/kotnik/xmltest.php on line 8 Call Stack: 0.0003 107144 1. {main}() /home/kotnik/xmltest.php:0 0.0003 107520 2. simplexml_load_string() /home/kotnik/xmltest.php:8 Fatal error: Call to a member function attributes() on a non-object in /home/kotnik/xmltest.php on line 9 Call Stack: 0.0003 107144 1. {main}() /home/kotnik/xmltest.php:0 -- Edit bug report at http://bugs.php.net/?id=50880&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=50880&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=50880&r=trysnapshot53 Try a snapshot (PHP 6.0): http://bugs.php.net/fix.php?id=50880&r=trysnapshot60 Fixed in SVN: http://bugs.php.net/fix.php?id=50880&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=50880&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=50880&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=50880&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=50880&r=needscript Try newer version: http://bugs.php.net/fix.php?id=50880&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=50880&r=support Expected behavior: http://bugs.php.net/fix.php?id=50880&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=50880&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=50880&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=50880&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=50880&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=50880&r=dst IIS Stability: http://bugs.php.net/fix.php?id=50880&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=50880&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=50880&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=50880&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=50880&r=mysqlcfg

« previous php.doc.bugs (#3804) next »