php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #20680 php references - error reporting
Submitted: 2002-11-27 11:06 UTC Modified: 2010-12-22 15:13 UTC
From: tit dot petric at telemach dot net Assigned:
Status: Not a bug Package: *General Issues
PHP Version: 4.2.3 OS: linux(all)
Private report: No CVE-ID: None
 [2002-11-27 11:06 UTC] 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?

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2010-12-22 15:13 UTC] johannes@php.net
-Status: Open +Status: Bogus -Package: Feature/Change Request +Package: *General Issues
 [2010-12-22 15:13 UTC] johannes@php.net
omitting the & might be done on purpose.
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sun May 19 20:01:30 2024 UTC