#19675 [NEW]: <tag>0</tag> goes wrong ...
| From: | leander454phpbug at berwers dot com | Date: | Mon, 30 Sep 2002 14:46:52 +0000 |
| Subject: | #19675 [NEW]: <tag>0</tag> goes wrong ... | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-20779@lists.php.net to get a copy of this message | ||
From: leander454phpbug@berwers.com
Operating system: Linux
PHP version: 4.2.0
PHP Bug Type: DOM XML related
Bug description: <tag>0</tag> goes wrong ...
$data = "<?xml version=\"1.0\"?" . "><me><name>Joe
Cool</name><age>0</age></me>";
$XMLDoc = xmldoc($data);
$XMLTree = xmltree($data);
print_r($XMLTree);
You will see that array SHOULD look like this:
me[name] = Joe Cool
me[age] = 0
But it is like this:
me[name] = Joe Cool
me[][0] = NULL
--
Edit bug report at http://bugs.php.net/?id=19675&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=19675&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=19675&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=19675&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=19675&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=19675&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=19675&r=support
Expected behavior: http://bugs.php.net/fix.php?id=19675&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=19675&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=19675&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=19675&r=globals