mirror of
https://github.com/php/php-src.git
synced 2024-11-28 20:34:29 +08:00
ae281c372a
# Also nuked some CRLF's
19 lines
391 B
PHP
Executable File
19 lines
391 B
PHP
Executable File
--TEST--
|
|
Bug #34199 (if($obj)/if(!$obj) inconsistency because of cast handler)
|
|
--SKIPIF--
|
|
<?php if (!extension_loaded("simplexml")) print "skip"; ?>
|
|
--FILE--
|
|
<?php
|
|
$xml = "<root></root>";
|
|
$xml = simplexml_load_string($xml);
|
|
$kids = $xml->children();
|
|
var_dump((bool)$kids);
|
|
if($kids) echo "bug\n"; else echo "ok\n";
|
|
if(!$kids) echo "ok\n"; else echo "bug\n";
|
|
?>
|
|
--EXPECT--
|
|
bool(false)
|
|
ok
|
|
ok
|
|
|