Skip Menu |

This queue is for tickets about the PHP-Session CPAN distribution.

Report information
The Basics
Id: 2394
Status: resolved
Priority: 0/
Queue: PHP-Session

People
Owner: Nobody in particular
Requestors: andy [...] petdance.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.20



Subject: Serializer does not handle embedded linefeeds
Following doesn't work when I try to save session data that has embedded linefeeds. My workaround is to normalize the whitespace (fortunately it's HTML data) but I would think I should be able to serialize anything. #!/usr/bin/perl -w use strict; use PHP::Session::Serializer::PHP; use Data::Dumper; my $serializer = PHP::Session::Serializer::PHP->new; my %data = ( lines => "foo\nbar" ); my $enc = $serializer->encode(\%data); print "Encoded:\n[$enc]\n"; my $hashref = $serializer->decode($enc); print "Decoded: ", Dumper( $hashref ), "\n";
Date: Tue, 15 Apr 2003 12:06:02 +0900
From: Tatsuhiko Miyagawa <miyagawa [...] edge.co.jp>
To: bug-PHP-Session [...] rt.cpan.org
Subject: Re: [cpan #2394] Serializer does not handle embedded linefeeds
RT-Send-Cc:
Thanks, fixed in 0.20, which goes to CPAN now or is available at: http://bulknews.net/lib/ At Mon, 14 Apr 2003 15:37:53 -0400 (EDT), Andy Lester via RT wrote: Show quoted text
> > Following doesn't work when I try to save session data that has > embedded linefeeds. My workaround is to normalize the whitespace > (fortunately it's HTML data) but I would think I should be able to > serialize anything.
-- Tatsuhiko Miyagawa <miyagawa@edge.co.jp>