#38215 [Opn->WFx]: functions arg lists with &$var = 'some default' broken? (works in php 5)

From: Date: Wed, 26 Jul 2006 07:07:29 +0000
Subject: #38215 [Opn->WFx]: functions arg lists with &$var = 'some default' broken? (works in php 5)
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-99895@lists.php.net to get a copy of this message
ID: 38215 Updated by: tony2001@php.net Reported By: php at elitecoders dot com -Status: Open +Status: Wont fix Bug Type: Scripting Engine problem Operating System: CentOS PHP Version: 4.4.2 New Comment: Parse error: syntax error, unexpected '=', expecting ')' You have to update your PHP version if you want to use this syntax. Previous Comments: ------------------------------------------------------------------------ [2006-07-26 05:32:29] php at elitecoders dot com Description: ------------ When a function argument list contains a variable reference which has a default value, there is no output. It may be because of a crash, but I was unable to test for that because I don't have access to the log files. This reproduce code works as expected in php 5. Reproduce code: --------------- <?php function exec_bug(&$var_ref = NULL) { } echo "working."; ?> Expected result: ---------------- working. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=38215&edit=1

« previous php.bugs (#99895) next »