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
 [2001-06-12 21:29 UTC] lasconi at free dot fr
this script produces a parse error:

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

Patches

Add a Patch

Pull Requests

Add a Pull Request

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-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 19:01:33 2024 UTC