#22790 [NEW]: Parameter set in function definition fails

From: Date: Wed, 19 Mar 2003 20:12:16 +0000
Subject: #22790 [NEW]: Parameter set in function definition fails
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-35954@lists.php.net to get a copy of this message
From: jasonzig at mac dot com Operating system: MacOSX 10.2.4 & Redhat Linux PHP version: 4.3.0 PHP Bug Type: Scripting Engine problem Bug description: Parameter set in function definition fails FUNCTION PageMover ($command, $currentSurveyTemplateID, $surveyTrackcer, $debug='BOO') { echo "<hr>BEGIN FUNCTION PageMover()<br>" ; echo "debug = " . $debug . "<br>"; echo "END FUNCTION PageMover()<hr>" ; } Calling this function without overwriting the $debug parameter will result in this output: BEGIN FUNCTION PageMover() debug = END FUNCTION PageMover() In my previous version of PHP (4.2.3), this resulted in setting "debug" to "BOO". -- Edit bug report at http://bugs.php.net/?id=22790&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22790&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22790&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22790&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22790&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22790&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22790&r=support Expected behavior: http://bugs.php.net/fix.php?id=22790&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22790&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22790&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22790&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22790&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22790&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22790&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22790&r=gnused

« previous php.bugs (#35954) next »