|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2007-09-21 12:21 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 15:00:01 2025 UTC |
Description: ------------ PHP has to have functions to serialize/unserialize session data, but those functions aren't available to use. There is one unserialize function in comment's of unserialize but i would like to see those two functions in php itself. Reproduce code: --------------- And BTW the function is by eoin at joy dot ucc dot ie: <?php function unserialize_session_data( $serialized_string ) { $variables = array( ); $a = preg_split( "/(\w+)\|/", $serialized_string, -1, PREG_SPLIT_NO_EMPTY | PREG_SPLIT_DELIM_CAPTURE ); for( $i = 0; $i < count( $a ); $i = $i+2 ) { $variables[$a[$i]] = unserialize( $a[$i+1] ); } return( $variables ); } Expected result: ---------------- I would like to see those functions Actual result: -------------- Didn't find them.