From: ceo at creamentas dot com
Operating system: any unix
PHP version: 4.4.0
PHP Bug Type: Session related
Bug description: Really sorry, not enough space here to enter - see description
Description:
------------
Spent 2 days to got the problem
please use this session values (it's serialized) to see it yourself
with this session values when I have an object with any method name that
has 2 arguments (var1, var2) when I call it both arguments have var2
value
the bug arise only on unix based platform - windows is ok. I've checked it
on 3 different servers
Thank you for PHP development :)
Reproduce code:
---------------
<?php
class ClassName {
function ClassName() {
}
function AnyName($v1,$v2) {
echo 'Method called with param '.$v1.'<br>';
exit;
}
}
$Obj = new ClassName();
session_start();
$superString =
'a:6:{s:8:"oldDebug";a:6:{s:7:"prevGet";a:0:{}s:8:"prevPost";a:0:{}s:11:"prevSession";a:5:{s:18:"AUTH_url_requested";s:32:"tree.php?type=products_catalogue";s:21:"AUTH_script_requested";s:0:"";s:15:"AUTH_last_login";s:19:"2005-10-05
10:44:42";s:15:"AUTH_last_visit";s:19:"2005-10-05
10:44:48";s:6:"sid_cp";s:32:"81ea67692167a073d9f09af4d7aafef1";}s:10:"prevCookie";a:2:{s:10:"machine-id";s:26:"217.21.60.10:1128419218684";s:9:"PHPSESSID";s:32:"ef56201655fc6ecdc891624ac148e108";}s:9:"prevFiles";a:0:{}s:7:"prevSql";a:5:{i:0;a:2:{s:3:"sql";s:31:"set
database
\'xtgate_allforfun\'";s:4:"time";s:19:"0.00018095970153809";}i:1;a:2:{s:3:"sql";s:67:"SELECT
* FROM users_cp WHERE
sid=\'81ea67692167a073d9f09af4d7aafef1\'";s:4:"time";s:19:"0.00066399574279785";}i:2;a:2:{s:3:"sql";s:27:"LOCK
TABLES users_cp
WRITE";s:4:"time";s:19:"0.00012993812561035";}i:3;a:2:{s:3:"sql";s:46:"UPDATE
users_cp SET lastdate=NOW() WHERE
id=17";s:4:"time";s:19:"0.00028514862060547";}i:4;a:2:{s:3:"sql";s:13:"UNLOCK
TABLES";s:4:"time";s:19:"8.4877014160156E-05";}}}s:18:"AUTH_url_requested";R:6;s:15:"AUTH_last_login";R:8;s:15:"AUTH_last_visit";R:9;s:6:"sid_cp";R:10;s:13:"cms_tree_name";s:18:"products_catalogue";}';
$_SESSION = unserialize($superString);
$Obj->AnyName("arg1","arg2");
?>
Expected result:
----------------
arg1
Actual result:
--------------
arg2
--
Edit bug report at http://bugs.php.net/?id=34740&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34740&r=trysnapshot4
Try a CVS snapshot (php5.0):
http://bugs.php.net/fix.php?id=34740&r=trysnapshot50
Try a CVS snapshot (php5.1):
http://bugs.php.net/fix.php?id=34740&r=trysnapshot51
Fixed in CVS: http://bugs.php.net/fix.php?id=34740&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=34740&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=34740&r=needtrace
Need Reproduce Script: http://bugs.php.net/fix.php?id=34740&r=needscript
Try newer version: http://bugs.php.net/fix.php?id=34740&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=34740&r=support
Expected behavior: http://bugs.php.net/fix.php?id=34740&r=notwrong
Not enough info:
http://bugs.php.net/fix.php?id=34740&r=notenoughinfo
Submitted twice:
http://bugs.php.net/fix.php?id=34740&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=34740&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34740&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=34740&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=34740&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=34740&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=34740&r=float
No Zend Extensions: http://bugs.php.net/fix.php?id=34740&r=nozend
MySQL Configuration Error: http://bugs.php.net/fix.php?id=34740&r=mysqlcfg