Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8528 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 4882 invoked by uid 1010); 15 Mar 2004 16:21:35 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 4858 invoked from network); 15 Mar 2004 16:21:35 -0000 Received: from unknown (HELO mail.appliedsec.com) (69.17.65.231) by pb1.pair.com with SMTP; 15 Mar 2004 16:21:35 -0000 Received: from appliedsec.com (localhost.applied.sec [127.0.0.1]) by mail.appliedsec.com (Postfix) with ESMTP id 0D61B78C61 for ; Mon, 15 Mar 2004 11:14:56 -0500 (EST) Message-ID: <4055D80F.7090400@appliedsec.com> Date: Mon, 15 Mar 2004 11:21:35 -0500 User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030807 X-Accept-Language: en-us, en MIME-Version: 1.0 To: internals@lists.php.net Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: obj == null check generates E_NOTICE From: hans@appliedsec.com (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