#34000 [Opn->Fbk]: parameters not passwed correctly

From: Date: Thu, 04 Aug 2005 22:16:25 +0000
Subject: #34000 [Opn->Fbk]: parameters not passwed correctly
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-82983@lists.php.net to get a copy of this message
ID: 34000 Updated by: tony2001@php.net Reported By: shim at nadersens dot org -Status: Open +Status: Feedback Bug Type: Class/Object related Operating System: FC3 PHP Version: 4.3.11 New Comment: 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). Previous Comments: ------------------------------------------------------------------------ [2005-08-05 00:10:21] shim at nadersens 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

« previous php.bugs (#82983) next »