Subject: | Issue about using PHP::Session::Serializer::PHP contigiously |
When using PHP::Session::Serializer::PHP to decode contigiously,
the former result will remain in the later one as a phantom.
test case:
#!/usr/bin/perl
use strict;
use warnings;
use Data::Dumper;
use PHP::Session::Serializer::PHP;
my $decoder = PHP::Session::Serializer::PHP->new;
print Dumper($decoder->decode('a|i:1;'));
print Dumper($decoder->decode('b|i:2;'));
__END__
Expected output:
$VAR1 = {
'a' => '1'
};
$VAR1 = {
'b' => '2'
};
Actually output:
$VAR1 = {
'a' => '1'
};
$VAR1 = {
'a' => '1',
'b' => '2'
};