Bug #18377: optional parameters passed by reference cause parse error

From: Date: Tue, 16 Jul 2002 21:06:35 +0000
Subject: Bug #18377: optional parameters passed by reference cause parse error
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-14344@lists.php.net to get a copy of this message
From: gk@proliberty.com Operating system: linux 2.4.18 PHP version: 4.2.1 PHP Bug Type: Scripting Engine problem Bug description: optional parameters passed by reference cause parse error SAMPLE CODE TO REPRODUCE: <?php function foo( &$a = "" ){ } foo( ); ?> GENERATES ERROR: parse error, unexpected '=', expecting ')' -- Edit bug report at http://bugs.php.net/?id=18377&edit=1 -- Fixed in CVS: http://bugs.php.net/fix.php?id=18377&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=18377&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=18377&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=18377&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=18377&r=support Expected behavior: http://bugs.php.net/fix.php?id=18377&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=18377&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=18377&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=18377&r=globals

« previous php.bugs (#14344) next »