mirror of
https://github.com/php/php-src.git
synced 2026-04-02 13:43:02 +02:00
Remove most of the `===DONE===` tags and its variations. Keep `===DONE===` if the test output otherwise becomes empty. Closes GH-4872.
20 lines
421 B
PHP
20 lines
421 B
PHP
--TEST--
|
|
Bug #75245 Don't set content of elements with only whitespaces
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('simplexml')) die('skip simplexml not available');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
var_dump(simplexml_load_string('<test1><test2> </test2><test3></test3></test1>'));
|
|
?>
|
|
--EXPECT--
|
|
object(SimpleXMLElement)#1 (2) {
|
|
["test2"]=>
|
|
object(SimpleXMLElement)#2 (0) {
|
|
}
|
|
["test3"]=>
|
|
object(SimpleXMLElement)#3 (0) {
|
|
}
|
|
}
|