Req #20680 [Opn->Bgs]: php references - error reporting

From: Date: Wed, 22 Dec 2010 14:13:36 +0000
Subject: Req #20680 [Opn->Bgs]: php references - error reporting
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-157258@lists.php.net to get a copy of this message
Edit report at http://bugs.php.net/bug.php?id=20680&edit=1 ID: 20680 Updated by: johannes@php.net Reported by: tit dot petric at telemach dot net Summary: php references - error reporting -Status: Open +Status: Bogus Type: Feature/Change Request -Package: Feature/Change Request +Package: *General Issues Operating System: linux(all) PHP Version: 4.2.3 Block user comment: N Private report: N New Comment: omitting the & might be done on purpose. Previous Comments: ------------------------------------------------------------------------ [2002-11-27 11:06:39] tit dot petric at telemach dot net function &reference_return($val) { global $ref_array; return $ref_array[$val]; } <b>$ref = &reference_return(0);</b> is it possible to get an E_NOTICE if people forget to type the "&" before the function which should return references? ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/bug.php?id=20680&edit=1

« previous php.bugs (#157258) next »