Re: [PHP-DEV] obj == null check generates E_NOTICE

2004-03-15 Thread Andi Gutmans
At 11:21 AM 3/15/2004 -0500, Hans Lellelid wrote: obj == null checks now trigger E_NOTICE 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

[PHP-DEV] obj == null check generates E_NOTICE

2004-03-15 Thread Hans Lellelid
obj == null checks now trigger E_NOTICE 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 -- PH