Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8530 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 22456 invoked by uid 1010); 15 Mar 2004 16:31:19 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 22404 invoked from network); 15 Mar 2004 16:31:18 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 15 Mar 2004 16:31:18 -0000 Received: (qmail 25433 invoked from network); 15 Mar 2004 16:31:16 -0000 Received: from guardian.zend.office (HELO AndiNotebook.zend.com) (10.1.1.4) by mail.zend.com with SMTP; 15 Mar 2004 16:31:16 -0000 Message-ID: <5.1.0.14.2.20040315183026.0214f6e8@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Mon, 15 Mar 2004 18:31:12 +0200 To: Hans Lellelid ,internals@lists.php.net In-Reply-To: <4055D80F.7090400@appliedsec.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] obj == null check generates E_NOTICE From: andi@zend.com (Andi Gutmans) References: <4055D80F.7090400@appliedsec.com> 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 I can post it as a bug report. I already fixed this. We added a bit too aggressive notice :) Now it's not quite as aggressive as I would like it to be but it behaves like in PHP 4. Andi