Perl interface to PHP's serialize() and unserialize() functions $Id: changelog.txt,v 1.1 2006/02/12 07:12:37 shurring Exp $ $Date: 2006/02/12 07:12:37 $ --- Change Log: ----------------------------------------------------- v0.92 2006-01-09 Kevin Haidl (kevinh at actofmind dot com) submitted the fix for serializing as a double when value is larger than ((pow(2,32)/2) -1) Charles M Hall (cmhall at hawaii dot edu) also submitted a patch that added support for unserializing booleans and empty arrays Added session_encode() Support for session_decode() is planned for next release. v0.91 [06-Apr-04] Handles boolean values. (actually not... see v0.92 notes) v0.9 [13-Apr-04] Handles negative values properly. Also correctly notices huge integers (>2^32) and serializes/unserializes them as doubles. Thanks to: Erlend Str?msvik [ehs (at) vorfor.no] Konrad Stepien [konrad (at) interdata.net.pl] v0.8 [20-Oct-03] Updated NULL handling (again) so that now only a perl value of "\0" will be serialized as a PHP NULL. Removed the code that serialized perl strings equalling "NULL" to a PHP NULL. Thanks to Geraint North (geraint (at) transitive.com) for his comments on this point. v0.7 [08/29/02] Updated NULL handling so that now any string "NULL" or value "\0" will serialize to proper "N;" value. Also, fixed a rather sneaky bug where double values would be unserialized as integers, and decimal point would be dropped :( v0.6 [07/18/02] Got a request and some code to add from Julian Jares [jjares (at) uolsinectis.com.ar] so the module properly handles NULL values. Now, NULL values (any string that contains "null" case-insens) will be serialized as "N;" it will be unserialized as "\0", since IIRC, that's the equivilent of a NULL. v0.5 [04/25/02] Very small change suggested by [joel (at) elserver.com] to support multi-line strings inside of hashes/arrays From Joel A. Chornik [joel (at) elserver.com]: On line 221 (now: ): I added the 's' operator the end of the regex to be able to send hashes and arrays with strings that have many lines.. #this is a serialized hash/array if ( $string =~ /^a:(\d+):({(.*)})$/s ) v0.4 [10/05/01] Encountered a problem when serializing an arrayref inside of a hashref, fixed it. Overhauled the serialization code, was able to get rid of an entire subroutine and significantly simplify serialization by taking better advanage of recursion. v0.3a [08/31/01] Cleaned up the two test scripts and added some more helpful comments to them. Revised and concatenated the readme and todo/caveat files (no change to serialize.pm code) v0.2a [06/15/01] Added support for single values (previously, it only worked with array or hash) Added support for "double" type Fixed support for array-nested-in-a-hash or hash-nested-in-an-array previously, it would not traverse correctly now, something like this will work: my %h = ( 'hello'=>'world', 'that'=> [0,1, { 'this' => 'works'} ], ); v0.1a [06/14/01] Support for hash/array is functional