Bug #66084 [Com]: simplexml_load_string() mangles empty node name

From: Date: Tue, 19 Aug 2014 14:46:42 +0000
Subject: Bug #66084 [Com]: simplexml_load_string() mangles empty node name
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-187180@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66084&edit=1 ID: 66084 Comment by: evgeniy dot arsenyev at gmail dot com Reported by: php at kenman dot net Summary: simplexml_load_string() mangles empty node name Status: Closed Type: Bug Package: SimpleXML related Operating System: Win7 PHP Version: 5.5Git-2013-11-12 (snap) Assigned To: ab Block user comment: N Private report: N New Comment: The issue is still actual for a specific xml: print_r(simplexml_load_string('<a><c><inner/></c><c><inner>ddd</inner></c></a>')); PHP 5.5.15 (CentOS 7) returns: SimpleXMLElement Object ( [c] => Array ( [0] => SimpleXMLElement Object ( [0] => SimpleXMLElement Object ( ) ) [1] => SimpleXMLElement Object ( [inner] => ddd ) ) ) but it should return (PHP 5.3.10, Ubuntu 12.10): SimpleXMLElement Object ( [c] => Array ( [0] => SimpleXMLElement Object ( [inner] => SimpleXMLElement Object ( ) ) [1] => SimpleXMLElement Object ( [inner] => dd ) ) ) Previous Comments: ------------------------------------------------------------------------ [2014-04-10 04:47:29] tyrael@php.net Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=a0beddf5e9ab3c6feaf0921be72a7f430597abea Log: Fixed bug #66084 simplexml_load_string() mangles empty node name ------------------------------------------------------------------------ [2014-04-05 08:35:32] ab@php.net Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=a0beddf5e9ab3c6feaf0921be72a7f430597abea Log: Fixed bug #66084 simplexml_load_string() mangles empty node name ------------------------------------------------------------------------ [2014-04-05 08:34:10] ab@php.net Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=a0beddf5e9ab3c6feaf0921be72a7f430597abea Log: Fixed bug #66084 simplexml_load_string() mangles empty node name ------------------------------------------------------------------------ [2014-04-05 07:51:01] ab@php.net Automatic comment on behalf of ab Revision: http://git.php.net/?p=php-src.git;a=commit;h=a0beddf5e9ab3c6feaf0921be72a7f430597abea Log: Fixed bug #66084 simplexml_load_string() mangles empty node name ------------------------------------------------------------------------ [2014-04-04 15:19:00] ab@php.net @php at kenman dot net thanks for figuring the json thing out. What I meant previously - it actually doesn't matter which function is used because often it will lead back to the get_properties callback of the corresponding object. So this is not a var_dump issue at all :) If it's only to see with var_dump, it's not of that prio as if that affects something like json. Thanks ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at https://bugs.php.net/bug.php?id=66084 -- Edit this bug report at https://bugs.php.net/bug.php?id=66084&edit=1

« previous php.bugs (#187180) next »