From: shim at nadersens dot org Operating system: FC3 PHP version: 4.3.11 PHP Bug Type: Class/Object related Bug description: parameters not passwed correctly
Description: ------------ Passing Parameters to a function result in all parameters and variables being set to the last paramter. I'd like to submit a ziped of sample of code that does this, but I'm haven't been able to extract the broken code from my program yet. It works sometimes, but not others. Seems to depend on the number of classes I have included. I'll update this when I have a working (broken) sample. Reproduce code: --------------- foo('a','b',c') function foo( $a, $b, $c) { echo $a; echo $b; echo $c; echo $d; // new varible } Expected result: ---------------- abc Actual result: -------------- cccc -- Notice $d is also set to 'c' -- Edit bug report at http://bugs.php.net/?id=34000&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34000&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34000&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34000&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34000&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34000&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34000&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34000&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34000&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34000&r=support Expected behavior: http://bugs.php.net/fix.php?id=34000&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34000&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34000&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34000&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34000&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34000&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34000&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34000&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34000&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34000&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34000&r=mysqlcfg