Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8369 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 12462 invoked by uid 1010); 4 Mar 2004 11:49:38 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 12433 invoked from network); 4 Mar 2004 11:49:37 -0000 Received: from unknown (HELO mail.zend.com) (192.117.235.230) by pb1.pair.com with SMTP; 4 Mar 2004 11:49:37 -0000 Received: (qmail 9849 invoked from network); 4 Mar 2004 11:49:31 -0000 Received: from guardian.zend.office (HELO AndiNotebook.zend.com) (10.1.1.4) by mail.zend.com with SMTP; 4 Mar 2004 11:49:31 -0000 Message-ID: <5.1.0.14.2.20040304134802.020ab848@127.0.0.1> X-Sender: andi@127.0.0.1 X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Thu, 04 Mar 2004 13:48:47 +0200 To: Derick Rethans ,John Coggeshall Cc: PHP Internals In-Reply-To: References: <1077855554.2592.1.camel@coogle.localdomain> <1077855554.2592.1.camel@coogle.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Subject: Re: [PHP-DEV] Bogus Error Message? From: andi@zend.com (Andi Gutmans) At 09:20 AM 2/27/2004 +0100, Derick Rethans wrote: >On Thu, 26 Feb 2004, John Coggeshall wrote: > > > > > > $reflect = new Reflection_Class("Object"); > > > > $docs = $reflect->getDocComment(); > > if(!empty($docs)) { > > echo "Has Docs.\n"; > > } > > > > if(!empty($reflect->getDocComment())) { > > echo "Has Docs.\n"; > > } > > > > ?> > > > > [john@coogle ]$ php test.php > > > > Fatal error: Can't use method return value in write context in test.php > > on line 10 > > > > Since when is empty() writing anything? Or is there something else here > > that I'm not seeing? > >empty() can only be used on variables, RTFM: http://nl.php.net/empty >but I do agree that the message is bogus... The error message isn't too good but it's not something which is easy to fix (and it's not critical). Got to think about it... I prefer looking at a couple of other bugs which were reported which are pretty much the last two critical problems I can see before RC1. Andi