r33287 - in /branches/upstream/libphp-serialization-perl/current: Changes MANIFEST MANIFEST.bak META.yml Makefile.PL lib/PHP/Serialization.pm t/06bool_deserializeRT45024.t

ansgar-guest at users.alioth.debian.org ansgar-guest at users.alioth.debian.org
Wed Apr 15 18:59:50 UTC 2009


Author: ansgar-guest
Date: Wed Apr 15 18:59:45 2009
New Revision: 33287

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=33287
Log:
[svn-upgrade] Integrating new upstream version, libphp-serialization-perl (0.31)

Added:
    branches/upstream/libphp-serialization-perl/current/MANIFEST.bak
    branches/upstream/libphp-serialization-perl/current/t/06bool_deserializeRT45024.t
Modified:
    branches/upstream/libphp-serialization-perl/current/Changes
    branches/upstream/libphp-serialization-perl/current/MANIFEST
    branches/upstream/libphp-serialization-perl/current/META.yml
    branches/upstream/libphp-serialization-perl/current/Makefile.PL
    branches/upstream/libphp-serialization-perl/current/lib/PHP/Serialization.pm

Modified: branches/upstream/libphp-serialization-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libphp-serialization-perl/current/Changes?rev=33287&op=diff
==============================================================================
--- branches/upstream/libphp-serialization-perl/current/Changes (original)
+++ branches/upstream/libphp-serialization-perl/current/Changes Wed Apr 15 18:59:45 2009
@@ -1,4 +1,8 @@
 Revision history for Perl extension PHP::Serialization
+
+0.31  2009-04-14
+ - Add warning note to POD
+ - Take patch from RT#45024 to fix boolean deserialization bug.
 
 0.30  2009-01-11
  - Significantly cleanup the code to be much prettier.

Modified: branches/upstream/libphp-serialization-perl/current/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libphp-serialization-perl/current/MANIFEST?rev=33287&op=diff
==============================================================================
--- branches/upstream/libphp-serialization-perl/current/MANIFEST (original)
+++ branches/upstream/libphp-serialization-perl/current/MANIFEST Wed Apr 15 18:59:45 2009
@@ -1,11 +1,13 @@
 Changes
+lib/PHP/Serialization.pm
 Makefile.PL
-MANIFEST
+MANIFEST			This list of files
+MANIFEST.bak
 README
-lib/PHP/Serialization.pm
 t/01use.t
 t/02basic.t
 t/03largeints.t
 t/04arraysRT21218.t
 t/05RT24441.t
+t/06bool_deserializeRT45024.t
 META.yml                                 Module meta-data (added by MakeMaker)

Added: branches/upstream/libphp-serialization-perl/current/MANIFEST.bak
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libphp-serialization-perl/current/MANIFEST.bak?rev=33287&op=file
==============================================================================
--- branches/upstream/libphp-serialization-perl/current/MANIFEST.bak (added)
+++ branches/upstream/libphp-serialization-perl/current/MANIFEST.bak Wed Apr 15 18:59:45 2009
@@ -1,0 +1,13 @@
+Changes
+lib/PHP/Serialization.pm
+Makefile
+Makefile.PL
+MANIFEST			This list of files
+MANIFEST.bak
+README
+t/01use.t
+t/02basic.t
+t/03largeints.t
+t/04arraysRT21218.t
+t/05RT24441.t
+t/06bool_deserializeRT45024.t

Modified: branches/upstream/libphp-serialization-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libphp-serialization-perl/current/META.yml?rev=33287&op=diff
==============================================================================
--- branches/upstream/libphp-serialization-perl/current/META.yml (original)
+++ branches/upstream/libphp-serialization-perl/current/META.yml Wed Apr 15 18:59:45 2009
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               PHP-Serialization
-version:            0.30
+version:            0.31
 abstract:           simple flexible means of converting the output of PHP's serialize() into the equivalent Perl memory structure, and vice versa.
 author:
     - Jesse Brown <jbrown at cpan.org>
@@ -8,12 +8,14 @@
 distribution_type:  module
 configure_requires:
     ExtUtils::MakeMaker:  0
+build_requires:
+    ExtUtils::MakeMaker:  0
 requires:  {}
 no_index:
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.48
+generated_by:       ExtUtils::MakeMaker version 6.50
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4

Modified: branches/upstream/libphp-serialization-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libphp-serialization-perl/current/Makefile.PL?rev=33287&op=diff
==============================================================================
--- branches/upstream/libphp-serialization-perl/current/Makefile.PL (original)
+++ branches/upstream/libphp-serialization-perl/current/Makefile.PL Wed Apr 15 18:59:45 2009
@@ -10,3 +10,4 @@
       (ABSTRACT_FROM => 'lib/PHP/Serialization.pm', # retrieve abstract from module
        AUTHOR     => 'Jesse Brown <jbrown at cpan.org>') : ()),
 );
+

Modified: branches/upstream/libphp-serialization-perl/current/lib/PHP/Serialization.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libphp-serialization-perl/current/lib/PHP/Serialization.pm?rev=33287&op=diff
==============================================================================
--- branches/upstream/libphp-serialization-perl/current/lib/PHP/Serialization.pm (original)
+++ branches/upstream/libphp-serialization-perl/current/lib/PHP/Serialization.pm Wed Apr 15 18:59:45 2009
@@ -8,7 +8,7 @@
 
 use vars qw/$VERSION @ISA @EXPORT_OK/;
 
-$VERSION = '0.30';
+$VERSION = '0.31';
 	
 @ISA = qw(Exporter);	
 @EXPORT_OK = qw(unserialize serialize);
@@ -16,6 +16,25 @@
 =head1 NAME
 
 PHP::Serialization - simple flexible means of converting the output of PHP's serialize() into the equivalent Perl memory structure, and vice versa.
+
+=head1 WARNING
+
+B<NOTE:> Not recommended for use, this module is mostly unmaintained, and has
+several severe known bugs. See the following for more information:
+
+=over
+
+=item L<http://rt.cpan.org/Ticket/Display.html?id=21218>
+
+=item L<http://rt.cpan.org/Ticket/Display.html?id=24441>
+
+=item L<http://rt.cpan.org/Ticket/Display.html?id=42029>
+
+=item L<http://rt.cpan.org/Ticket/Display.html?id=44700>
+
+=back
+
+Patches to fix any of these bugs are more than welcome!
 
 =head1 SYNOPSIS
 
@@ -231,6 +250,9 @@
 			# Ok, read our boolen value..
 			my $bool = $self->_readchar;
 			$self->_skipchar;
+            if ($bool eq '0') {
+                $bool = undef;
+            }
 			push(@elems, $bool);
 		} 
 		elsif ( $type eq 'undef' ) {

Added: branches/upstream/libphp-serialization-perl/current/t/06bool_deserializeRT45024.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libphp-serialization-perl/current/t/06bool_deserializeRT45024.t?rev=33287&op=file
==============================================================================
--- branches/upstream/libphp-serialization-perl/current/t/06bool_deserializeRT45024.t (added)
+++ branches/upstream/libphp-serialization-perl/current/t/06bool_deserializeRT45024.t Wed Apr 15 18:59:45 2009
@@ -1,0 +1,16 @@
+#!/usr/bin/env perl
+use strict;
+use warnings;
+
+use PHP::Serialization;
+use Test::More tests => 1;
+
+my $s = 'a:4:{i:0;s:3:"ABC";i:1;s:3:"OPQ";i:2;s:3:"XYZ";i:3;b:0;}';
+my $u = PHP::Serialization::unserialize($s);
+is_deeply $u, [
+    'ABC',
+    'OPQ',
+    'XYZ',
+    undef,
+];
+




More information about the Pkg-perl-cvs-commits mailing list