ID: 34000 Updated by: [EMAIL PROTECTED] Reported By: shim at andersens dot org -Status: Open +Status: Feedback Bug Type: Class/Object related Operating System: FC3 PHP Version: 4.3.11 New Comment:
Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip Why didn't you try it before? Previous Comments: ------------------------------------------------------------------------ [2005-08-05 00:53:17] shim at andersens dot org Traced it down to a line that read <? function &Param($name) { return @$this->params[$name]; } ?> changing it to ... $v = $this->params[$name]; return $v; ... fixes it. Is this the same issue fixed in 4.4? ------------------------------------------------------------------------ [2005-08-05 00:35:11] [EMAIL PROTECTED] Your code works perfectly fine here. Please provide the real one. ------------------------------------------------------------------------ [2005-08-05 00:27:08] shim at nadersens dot org foo('a','b',c') should be foo('a','b','c') also, are varibables are references to eachother. Changing one changes them all. ------------------------------------------------------------------------ [2005-08-05 00:16:23] [EMAIL PROTECTED] Thank you for this bug report. To properly diagnose the problem, we need a short but complete example script to be able to reproduce this bug ourselves. A proper reproducing script starts with <?php and ends with ?>, is max. 10-20 lines long and does not require any external resources such as databases, etc. If possible, make the script source available online and provide an URL to it here. Try to avoid embedding huge scripts into the report. The code you have provided basically doesn't work (missing quotes and semicolons). ------------------------------------------------------------------------ [2005-08-05 00:10:21] shim at andersens dot org 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 this bug report at http://bugs.php.net/?id=34000&edit=1