Req #43308 [Opn->Fbk]: Functions to use registered serializer handlers to serialize and unserialize
Edit report at https://bugs.php.net/bug.php?id=43308&edit=1
ID: 43308
Updated by: cmb@php.net
Reported by: jani dot ollikainen at pronetko dot fi
Summary: Functions to use registered serializer handlers to
serialize and unserialize
-Status: Open
+Status: Feedback
Type: Feature/Change Request
-Package: Feature/Change Request
+Package: *General Issues
Operating System: Linux
PHP Version: 5.2.5
-Assigned To:
+Assigned To: cmb
Block user comment: N
Private report: N
New Comment:
> So there should be functions which can use those registered
> serializer handlers to serialize/unserialize data accordingly
> selected serializer handler.
The question is, why? I mean, there are already session_encode()
and session_decode() to populate $_SESSION manually â do you need
something else?
Previous Comments:
------------------------------------------------------------------------
[2008-12-19 17:56:20] emil dot hall at gamereactor dot se
You get one vote from me! This is far from bogus. And here is a simple test case:
session_start();
echo serialize($_SESSION), "\n";
echo file_get_contents('/path/sess_'.session_id());
If the advice from derick@php.net was solid, I would expect the exact same output from both echoes.
Actual result:
a:1:{s:4:"asdf";s:6:"foobar";}
asdf|s:6:"foobar";
------------------------------------------------------------------------
[2007-11-15 22:29:11] jani dot ollikainen at pronetko dot fi
Description:
------------
Ok, Tried this once with feature request #42725
and no go. Second try..
First read the #42725 and then read this:
Of course I know those, but those don't unserialize() data which is
formatted like:
PUTLASTHOST|s:23:"kuvajainen.domain.tld";PUTHOST|s:23:"kuvajainen.domain.tld";PUTDOCROOT|s:39:"/data/www/c/k/u/kuvajainen.domain.tld";putprofiles|s:3:"4,5";
And there are many different serializer handlers in php, for example:
Registered serializer handlers => php php_binary wddx
So there should be functions which can use those registered serializer
handlers to serialize/unserialize data accordingly selected serializer
handler.
So I don't think that this is bogus feature request.
Prove me wrong, but serialize/unserialize isn't the answer.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=43308&edit=1
Thread (4 messages)