session_decode does corretly the job, but returns FALSE !!!
| Bug #21268 | session_decode does corretly the job, but returns FALSE !!! | ||||
|---|---|---|---|---|---|
| Submitted: | 2002-12-29 11:06 UTC | Modified: | 2002-12-29 12:51 UTC | ||
| From: | JeanFrederic at Loiseau dot org | Assigned: | |||
| Status: | Closed | Package: | Session related | ||
| PHP Version: | 4.2.3 | OS: | Windows XP | ||
| Private report: | No | CVE-ID: | None | ||
[2002-12-29 11:06 UTC] JeanFrederic at Loiseau dot org
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
Patches
Pull Requests
History
AllCommentsChangesGit/SVN commits
[2002-12-29 12:51 UTC] iliaa@php.net