php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #11452 it is not possible to assign a default value to a variable passed by reference
Submitted: 2001-06-12 21:29 UTC Modified: 2001-06-17 05:11 UTC
From: lasconi at free dot fr Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.5 OS: windows98
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: lasconi at free dot fr
New email:
PHP Version: OS:

 

 [2001-06-12 21:29 UTC] lasconi at free dot fr
this script produces a parse error:

function f(&$a="a"){
       return true;
}

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-06-17 05:11 UTC] jmoore@php.net
your trying to assign a constant by reference. This will ofcourse not work, we have had a few feature requests for this so it might make it into 4.1 but this certainly isnt a bug.

- James
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Tue May 06 00:01:29 2025 UTC