xref: /php-src/Zend/tests/objects/objects_015.phpt (revision 275f63e7)
1--TEST--
2comparing objects with strings/NULL
3--FILE--
4<?php
5
6$o=new stdClass;
7
8var_dump($o == "");
9var_dump($o != "");
10var_dump($o <  "");
11var_dump("" <  $o);
12var_dump("" >  $o);
13var_dump($o != null);
14var_dump(is_null($o));
15
16?>
17--EXPECT--
18bool(false)
19bool(true)
20bool(false)
21bool(true)
22bool(false)
23bool(true)
24bool(false)
25