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
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
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

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 19:01:30 2024 UTC