Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:8193 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 39117 invoked by uid 1010); 27 Feb 2004 04:19:16 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 39083 invoked from network); 27 Feb 2004 04:19:16 -0000 Received: from unknown (HELO sccrmhc13.comcast.net) (204.127.202.64) by pb1.pair.com with SMTP; 27 Feb 2004 04:19:16 -0000 Received: from coogle.localdomain (pcp02905316pcs.roylok01.mi.comcast.net[68.62.1.1]) by comcast.net (sccrmhc13) with SMTP id <2004022704191501600lpdmbe>; Fri, 27 Feb 2004 04:19:15 +0000 To: PHP Internals Content-Type: text/plain Message-ID: <1077855554.2592.1.camel@coogle.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.5 Date: Thu, 26 Feb 2004 23:19:14 -0500 Content-Transfer-Encoding: 7bit Subject: Bogus Error Message? From: john@coggeshall.org (John Coggeshall) 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? John -- -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=- John Coggeshall http://www.coggeshall.org/ The PHP Developer's Handbook http://www.php-handbook.com/ -=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=--=~=-