From: [EMAIL PROTECTED] Operating system: Linux PHP version: 4.3.0 PHP Bug Type: Class/Object related Bug description: Parameters not passed to class methods.
Here is a strange bug affecting 4.3.0 (with the same code, 4.2.3 works fine): class foo { // constructor, etc. function myecho($string1, $string2) { echo "String 1: " . $string1 . "\n"; echo "String 2: " . $string2 . "\n"; } }; $bar = new foo(); $bar->myecho("apple", "orange"); Will output one of these 3 possibilities, at random (or so it seems:) String 1: apple String 2: orange String 1: orange String 2: String 1: String 2: Weird, eh? and rerunning the same code does not always give the same results. Reposted from bug#21886, and not related to sessions in any way. That nasty problem keeps me from upgrading... -- Edit bug report at http://bugs.php.net/?id=22211&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=22211&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=22211&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=22211&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=22211&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=22211&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=22211&r=support Expected behavior: http://bugs.php.net/fix.php?id=22211&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=22211&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=22211&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=22211&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=22211&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=22211&r=dst IIS Stability: http://bugs.php.net/fix.php?id=22211&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=22211&r=gnused