Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:15270 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 7402 invoked by uid 1010); 6 Mar 2005 04:32:30 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 7387 invoked from network); 6 Mar 2005 04:32:30 -0000 Received: from unknown (HELO virgin.net) (127.0.0.1) by localhost with SMTP; 6 Mar 2005 04:32:29 -0000 X-Host-Fingerprint: 207.192.181.155 master.nbinteractive.com Linux 2.4/2.6 Received: from ([207.192.181.155:46509] helo=master.nbinteractive.com) by pb1.pair.com (ecelerity HEAD r(5124)) with SMTP id 64/88-29225-DD78A224 for ; Sat, 05 Mar 2005 23:32:29 -0500 Received: (qmail 25730 invoked by uid 511); 6 Mar 2005 04:47:23 -0000 Received: from yml@dtlink.com by master.nbinteractive.com by uid 89 with qmail-scanner-1.20 (clamscan: 0.65. Clear:RC:1(127.0.0.1):. Processed in 0.02171 secs); 06 Mar 2005 04:47:23 -0000 Received: from unknown (HELO secure.fieldpost.com) (yml@smtp.yml.com@127.0.0.1) by localhost with SMTP; 6 Mar 2005 04:47:23 -0000 Received: from 207.192.181.138 (SquirrelMail authenticated user yml@smtp.yml.com) by secure.fieldpost.com with HTTP; Sat, 5 Mar 2005 23:47:23 -0500 (EST) Message-ID: <65354.207.192.181.138.1110084443.squirrel@secure.fieldpost.com> Date: Sat, 5 Mar 2005 23:47:23 -0500 (EST) To: internals@lists.php.net Reply-To: yml@dtlink.com User-Agent: SquirrelMail/1.4.2 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Priority: 3 Importance: Normal Subject: PHP 5.0.3 E_STRICT question - returning NULL from reference returning function From: yml@dtlink.com ("Yermo Lamers") What is the proper way to return a NULL condition from a method that returns a reference? function &testfunc() { return NULL; } generates: "Strict Standards: Only variable references should be returned by reference in ..." Is the correct approach to do something like: function &testfunc() { $nullVar = NULL; return $nullVar; } ?? ---------------------------------------------------------------------------- DTLink Software http://www.dtlink.com Desktop Software and Web Applications ----------------------------------------------------------------------------