class Foo { }
$t = new Foo();
if ($t == null) { }
Notice - Object of class Foo could not be converted to boolean
Changing the comparison to $t === null makes the notice go away. Is this intended? If not I can post it as a bug report.
Thanks, Hans
-- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: http://www.php.net/unsub.php