Skip Menu | will be shut down on March 1st, 2021.

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

Report information
The Basics
Id: 128949
Status: new
Priority: 0/
Queue: PHP-Serialization

Owner: Nobody in particular
Requestors: davido [...]

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

Subject: Unable to achieve a round trip
Download (untitled) / with headers
text/plain 597b
The test, t/10intRT48594.t has the following code: my $data = {'0' => '0'}; $str = PHP::Serialization::serialize( $data ); is($str,'a:1:{i:0;i:0;}', 'Keys and vals are ints for 0'); If you take the string returned in $str and pass it to PHP::Serialization::unserialize($str), you will get back an array ref, not a hash ref. In other words, you don't get a clean round-trip. $struct = PHP::Serialization::unserialize($str); is_deeply($struct, $data, 'Successful round trip.'); You'll find that the structure returned by unserialize is an array. An unsuccessful round trip seems like a problem.

This service is sponsored and maintained by Best Practical Solutions and runs on infrastructure.

Please report any issues with to