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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tit dot petric at telemach dot net
New email:
PHP Version: OS:

 

 [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

Pull Requests

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-2025 The PHP Group
All rights reserved.
Last updated: Tue Jul 15 05:01:33 2025 UTC