From: [EMAIL PROTECTED] Operating system: Windows XP PHP version: 4.2.3 PHP Bug Type: Session related Bug description: session_decode does corretly the job, but returns FALSE !!!
I believed that session_decode was not working, because it was always returning false, BUT it works... even if it returns FALSE ! Here is my sample code : <?php session_start(); $_SESSION['test']=20; echo "test = ".$_SESSION['test']."<br><br>"; $buffer=session_encode(); echo "buffer = ".$buffer."<br><br>"; $_SESSION['test']=10; echo "test = ".$_SESSION['test']."<br><br>"; if (session_decode($buffer)==FALSE) echo "<br>It returns FALSE !!!!<br>"; echo "test = ".$_SESSION['test']."<br><br>"; ?> here is the ouput (after a REFRESH) : test = 20 buffer = test|i:20; test = 10 It returns FALSE !!!! test = 20 It display "It returns FALSE", but $_SESSION['test'] is correctly initialized with 20 as it was... Do I missed something ? or is it a bug ? Thanks in advance, Jean-Frederic -- Edit bug report at http://bugs.php.net/?id=21268&edit=1 -- Try a CVS snapshot: http://bugs.php.net/fix.php?id=21268&r=trysnapshot Fixed in CVS: http://bugs.php.net/fix.php?id=21268&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=21268&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=21268&r=needtrace Try newer version: http://bugs.php.net/fix.php?id=21268&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=21268&r=support Expected behavior: http://bugs.php.net/fix.php?id=21268&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=21268&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=21268&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=21268&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21268&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=21268&r=dst IIS Stability: http://bugs.php.net/fix.php?id=21268&r=isapi