[PATCH] default session serialization

From: Date: Sun, 22 Nov 2009 05:16:35 +0000
Subject: [PATCH] default session serialization
Groups: php.internals 
Request: Send a blank email to internals+get-46157@lists.php.net to get a copy of this message
Hi, Attached is a patch (against HEAD) which adapts the default ("php") session serializer to serialize the whole array using php_var_serialize instead of calling it once per element. This simplifies the serialization code, and allows unicode session keys, or even ascii keys containing the pipe character. However it would be a significant BC break, as old serialized session records would be unreadable after upgrading. We could mitigate this by providing a script to convert old session files. It also means the serialized data would be a few bytes larger per key, so there's definitely some weighing up to do. Any thoughts? Arpad

Attachment: [text/x-diff] php6-session-encode.patch
« previous php.internals (#46157) next »