|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Request #26637 pickle/unpickle function
Submitted: 2003-12-16 01:20 UTC Modified: 2003-12-16 01:26 UTC
From: scott at scottdial dot com Assigned:
Status: Not a bug Package: Feature/Change Request
PHP Version: Any OS: N/A
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
Block user comment
Status: Assign to:
Bug Type:
From: scott at scottdial dot com
New email:
PHP Version: OS:


 [2003-12-16 01:20 UTC] scott at scottdial dot com
For the unknowing, pickle is the python derived term for object serialization. Currenlty, session management has such functionality, but this functionality is not exposed to the programmer to be done outside of using a session. I propose there be a pickle/unpickle function that uses the same serialization method that the session managment uses.

Reproduce code:
$foo = array(1, 2, 3)
$string = pickle($foo);

echo $string;

$bar = unpickle($foo);

echo $bar;

Expected result:

Array ( [0] => 1 [1] => 2 [2] => 3 )


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2003-12-16 01:23 UTC] scott at scottdial dot com
I typo'd.. should be: $bar = unpickle($string);
 [2003-12-16 01:26 UTC] scott at scottdial dot com
Doh, I needed to RTFM harder :-p
PHP Copyright © 2001-2022 The PHP Group
All rights reserved.
Last updated: Wed May 18 10:05:45 2022 UTC