/
usr
/
local
/
lsws
/
phpbuild
/
php-8.0.7
/
ext
/
simplexml
/
tests
/
File Upload :
llllll
Current File: //usr/local/lsws/phpbuild/php-8.0.7/ext/simplexml/tests/bug41947.phpt
--TEST-- Bug #41947 (addChild incorrectly registers empty strings as namespaces) --SKIPIF-- <?php if (!extension_loaded("simplexml")) print "skip"; ?> --FILE-- <?php $xml = simplexml_load_string('<?xml version="1.0" encoding="utf-8"?><root xmlns:myns="http://myns" />'); $grandchild = $xml->addChild('child', null, 'http://myns')->addChild('grandchild', 'hello', ''); $gchild = $xml->xpath("//grandchild"); if (count($gchild) > 0) { echo $gchild[0]."\n"; } ?> --EXPECT-- hello
Copyright ©2k19 -
Hexid
|
Tex7ure