From:             jani dot ollikainen at pronetko dot fi
Operating system: 
PHP version:      5.2.4
PHP Bug Type:     Feature/Change Request
Bug description:  Functions to serialize/unserialize session data

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.

-- 
Edit bug report at http://bugs.php.net/?id=42725&edit=1
-- 
Try a CVS snapshot (PHP 4.4): 
http://bugs.php.net/fix.php?id=42725&r=trysnapshot44
Try a CVS snapshot (PHP 5.2): 
http://bugs.php.net/fix.php?id=42725&r=trysnapshot52
Try a CVS snapshot (PHP 6.0): 
http://bugs.php.net/fix.php?id=42725&r=trysnapshot60
Fixed in CVS:                 http://bugs.php.net/fix.php?id=42725&r=fixedcvs
Fixed in release:             
http://bugs.php.net/fix.php?id=42725&r=alreadyfixed
Need backtrace:               http://bugs.php.net/fix.php?id=42725&r=needtrace
Need Reproduce Script:        http://bugs.php.net/fix.php?id=42725&r=needscript
Try newer version:            http://bugs.php.net/fix.php?id=42725&r=oldversion
Not developer issue:          http://bugs.php.net/fix.php?id=42725&r=support
Expected behavior:            http://bugs.php.net/fix.php?id=42725&r=notwrong
Not enough info:              
http://bugs.php.net/fix.php?id=42725&r=notenoughinfo
Submitted twice:              
http://bugs.php.net/fix.php?id=42725&r=submittedtwice
register_globals:             http://bugs.php.net/fix.php?id=42725&r=globals
PHP 3 support discontinued:   http://bugs.php.net/fix.php?id=42725&r=php3
Daylight Savings:             http://bugs.php.net/fix.php?id=42725&r=dst
IIS Stability:                http://bugs.php.net/fix.php?id=42725&r=isapi
Install GNU Sed:              http://bugs.php.net/fix.php?id=42725&r=gnused
Floating point limitations:   http://bugs.php.net/fix.php?id=42725&r=float
No Zend Extensions:           http://bugs.php.net/fix.php?id=42725&r=nozend
MySQL Configuration Error:    http://bugs.php.net/fix.php?id=42725&r=mysqlcfg

Reply via email to