Bug #18377 Updated: optional parameters passed by reference cause parse error
| From: | sniper@php.net | Date: | Wed, 17 Jul 2002 03:47:55 +0000 |
| Subject: | Bug #18377 Updated: optional parameters passed by reference cause parse error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-14359@lists.php.net to get a copy of this message | ||
ID: 18377
Updated by: sniper@php.net
Reported By: gk@proliberty.com
-Status: Open
+Status: Closed
Bug Type: Scripting Engine problem
Operating System: linux 2.4.18
PHP Version: 4.2.1
New Comment:
This has been fixed in the ZendEngine2.
Won't be fixed for ZE1, AFAIK.
--Jani
Previous Comments:
------------------------------------------------------------------------
[2002-07-16 17:06:34] gk@proliberty.com
SAMPLE CODE TO REPRODUCE:
<?php
function foo( &$a = "" ){
}
foo( );
?>
GENERATES ERROR:
parse error, unexpected '=', expecting ')'
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=18377&edit=1