Skip Menu |

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

Report information
The Basics
Id: 51085
Status: open
Priority: 0/
Queue: PHP-Serialization

Owner: Nobody in particular
Requestors: Joshua.Moore [...]
Cc: bo [...]

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

Subject: type a
Date: Tue, 3 Nov 2009 11:52:42 PST
To: <bug-PHP-Serialization [...]>
From: <Joshua.Moore [...]>
#!/usr/bin/perl use strict; use warnings; use Net::IMAP::Simple; use Email::MIME; use MIME::Parser; use HTML::Entities; use XML::Simple qw(:strict); use Data::Dumper; use Data::Serializer::PHP::Serialization; use PHP::Serialization qw(serialize unserialize); use DBI; use File::Copy; use URI::Escape; # My PHP 5.24 produced the following serialization my $data = 'a:25:{ s:10:"first_name";s:3:"Tes";s:11:"middle_name";s:1:"T";s:9:"last_name";s:9:"Testierre";s:5:"email";s:17:"";s:5:"phone";s:3:"411";s:7:"address";s:3:"411";s:12:"personal_url";s:0:"";s:7:"country";s:8:"Testania";s:12:"bibliography";s:75:"{ bibliography - select up to five academic publications you have authored }";s:22:"professional_interests";s:90:"[professional interests - briefly describe your main research and professional interests]";s:6:"skills";s:91:"(skills / proficiencies - list tools, software, and hardware that you are proficient with)";s:13:"institution[]";b:0;s:8:"degree[]";b:0;s:21:"academic_discipline[]";b:0;s:13:"degree_date[]";b:0;s:10:"employer[]";b:0;s:7:"title[]";b:0;s:12:"start_date[]";b:0;s:10:"end_date[]";b:0;s:18:"responsibilities[]";b:0;s:15:"resume_filename";b:0;s:20:"coverletter_filename";b:0;s:6:"job_id";a:3:{ i:0;s:2:"20";i:1;s:2:"17";i:2;s:0:""; }s:9:"job_Title";a:3:{ i:0;s:62:"Post-doctoral Research Staff, Electronic Materials and Devices";i:1;s:32:"Director of Business Development";i:2;N; }s:14:"date_submitted";s:19:"2009-11-02 03:11:09"; }'; print $data; my $q = <STDIN>; my $cereal = new PHP::Serialization; # my $undata = $cereal->decode($data); my $undata = unserialize($data); print Dumper($undata); I get ERROR Unknown type . at C:\temp\ line 38 Is this because my serialization starts with a:25 { Your type table - my %type_table = ( O => 'object', s => 'scalar', a => 'array', i => 'integer', d => 'float', b => 'boolean', N => 'undef', ); No I guess not. . . .
Download (untitled) / with headers
text/html 12.2k

Message body is not shown because it is too large.

Download (untitled) / with headers
text/plain 121b
It looks like the problem is whitespace in your string. Can you upload an attachment, so that the whitespace is correct?

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

Please report any issues with to