From: scott at scottdial dot com Operating system: N/A PHP version: 4.3.4 PHP Bug Type: Feature/Change Request Bug description: pickle/unpickle
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 bug report at http://bugs.php.net/?id=26637&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=26637&r=trysnapshot4 Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=26637&r=trysnapshot5 Fixed in CVS: http://bugs.php.net/fix.php?id=26637&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=26637&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=26637&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=26637&r=needscript Try newer version: http://bugs.php.net/fix.php?id=26637&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=26637&r=support Expected behavior: http://bugs.php.net/fix.php?id=26637&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=26637&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=26637&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=26637&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=26637&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=26637&r=dst IIS Stability: http://bugs.php.net/fix.php?id=26637&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=26637&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=26637&r=float