Subject: | Error in parser |
Attached test file dies with the error below. The sample data was
taken from a SMF session data:
Unknown type 'r'! at 1 at C:/Perl/site/lib/PHP/Serialization.pm line
161
PHP::Serialization::_parse('PHP::Serialization=HASH
(0x2756c0)') called at C:/Perl/site/lib/PHP/Serialization.pm line 116
PHP::Serialization::decode('PHP::Serialization=HASH
(0x2756c0)', 'rand_code|s:32:"13680074cb023d44014946df7c1d7819";ban|a:5
:{s:...') called at C:/Perl/site/lib/PHP/Serialization.pm line 79
PHP::Serialization::unserialize
('rand_code|s:32:"13680074cb023d44014946df7c1d7819";ban|a:5:{s:...')
called at C:\Documents and Settings\burak\Desktop\s.pl line 6
Subject: | s.pl |
#!/usr/bin/perl -w
use strict;
use PHP::Serialization qw(serialize unserialize);
my $str = <DATA>;
print unserialize $str;
__END__
rand_code|s:32:"13680074cb023d44014946df7c1d7819";ban|a:5:{s:12:"last_checked";i:1165345329;s:9:"ID_MEMBER";i:0;s:2:"ip";s:15:"68.75.16.72";s:3:"ip2";s:15:"195.174.114.197";s:5:"email";s:0:"";}log_time|i:1165345329;timeOnlineUpdated|i:1165344980;old_url|s:64:"http://www.site.com/";USER_AGENT|s:34:"Opera/9.02 (Windows NT 5.1; U; tr)";visual_verification_code|s:5:"WZAPE";just_registered|i:1;