/
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/bug37076_1.phpt
--TEST-- Bug #37076 (SimpleXML ignores .=) (appending to unnamed attribute) --SKIPIF-- <?php if (!extension_loaded("simplexml")) print "skip"; ?> --FILE-- <?php $xml = simplexml_load_string("<root><foo /></root>"); try { $xml->{""} .= "bar"; } catch (ValueError $exception) { echo $exception->getMessage() . "\n"; } print $xml->asXML(); ?> --EXPECT-- Cannot create element with an empty name <?xml version="1.0"?> <root><foo/></root>
Copyright ©2k19 -
Hexid
|
Tex7ure