#26637 [Opn]: pickle/unpickle function

From: Date: Tue, 16 Dec 2003 06:23:09 +0000
Subject: #26637 [Opn]: pickle/unpickle function
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-52141@lists.php.net to get a copy of this message
ID: 26637 User updated by: scott at scottdial dot com -Summary: pickle/unpickle Reported By: scott at scottdial dot com Status: Open Bug Type: Feature/Change Request Operating System: N/A -PHP Version: 4.3.4 +PHP Version: Any New Comment: I typo'd.. should be: $bar = unpickle($string); Previous Comments: ------------------------------------------------------------------------ [2003-12-16 01:20:34] scott at scottdial dot com Description: ------------ 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; print_r($bar); Expected result: ---------------- a:3:{i:0;i:1;i:1;i:2;i:2;i:3;} Array Array ( [0] => 1 [1] => 2 [2] => 3 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=26637&edit=1

« previous php.bugs (#52141) next »