--TEST--
Bug #67572 - SimpleXMLElement not parsing \n correctly
--EXTENSIONS--
simplexml
--FILE--
somevalue");
$xml2 = simplexml_load_string("\nsomevalue\n");
foreach($xml as $key => $value) {
print "$key = $value ... ";
var_dump(empty($value));
var_dump($value == false);
}
foreach($xml2 as $key => $value) {
print "$key = $value ... ";
var_dump(empty($value));
var_dump($value == false);
}
?>
--EXPECT--
regular string ... bool(false)
something = somevalue ... bool(false)
bool(false)
something = somevalue ... bool(false)
bool(false)