mirror of
https://github.com/php/php-src.git
synced 2024-12-02 22:34:55 +08:00
27 lines
343 B
PHP
27 lines
343 B
PHP
--TEST--
|
|
comparing objects with strings/NULL
|
|
--FILE--
|
|
<?php
|
|
|
|
$o=new stdClass;
|
|
|
|
var_dump($o == "");
|
|
var_dump($o != "");
|
|
var_dump($o < "");
|
|
var_dump("" < $o);
|
|
var_dump("" > $o);
|
|
var_dump($o != null);
|
|
var_dump(is_null($o));
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
bool(false)
|
|
bool(true)
|
|
bool(false)
|
|
bool(true)
|
|
bool(false)
|
|
bool(true)
|
|
bool(false)
|
|
===DONE===
|