ID: 34740 Updated by: [EMAIL PROTECTED] Reported By: ceo at creamentas dot com -Status: Open +Status: Bogus Bug Type: Session related Operating System: any unix PHP Version: 4.4.0 New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a list of more appropriate places to ask for help using PHP, please visit http://www.php.net/support.php as this bug system is not the appropriate forum for asking support questions. Due to the volume of reports we can not explain in detail here why your report is not a bug. The support channels will be able to provide an explanation for you. Thank you for your interest in PHP. Your first and biggest mistake: $_SESSION = unserialize(..).. You obviously don't know what your doing so please ask questions how to use PHP on the mailing lists. Hint: Do NOT mess references, classes and/or objects with sessions! Previous Comments: ------------------------------------------------------------------------ [2005-10-05 12:31:51] ceo at creamentas dot com 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 this bug report at http://bugs.php.net/?id=34740&edit=1
