From:             giunta dot gaetano at gmail dot com
Operating system: !important
PHP version:      5.3.0
PHP Bug Type:     Feature/Change Request
Bug description:  allow usage of json and/or php standard serialize format for 
sessions

Description:
------------
The current session_decode() function is good when the user needs to
decode a serialized session string, but it
- needs to have session_start() called beforehand
- has an impact on the current session state

A lot of comments in the php man pages for unserialize() and
session_decode() are from users trying to write a preg_ based decoder of
session data (and failing).

A new function that session_decode_to_array() that
- returned the deserialized data as an array
- did not impact current session state
would imho be quite useful (or adding a flag param to the existing
function, to the same effect)

Since this feat. request has already been filed and closed as bogus
(http://bugs.php.net/bug.php?id=42725), what I am proposing here is
slightly different: besides 'wddx' and 'php', allow usage of 'json' and
'serialize' as native serialization formats for session data - the latter
corresponding to the native serialize function.

If there is some information loss involved in using those two formats (ie.
references), just make it clear in the docs.


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

Reply via email to