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)

MIME-Version: 1.0
X-Spam-Status: No, hits=-4.0 required=8.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_MED,SPF_PASS
Acceptlanguage: en-US
X-Virus-Checked: Checked by ClamAV on
Content-Language: en-US
Content-Type: multipart/alternative; boundary="_000_07595F45EC85124E8D1C4D245AE6DC0099BF0DBAD0GOLDFINGERadp_"
Message-ID: <07595F45EC85124E8D1C4D245AE6DC0099BF0DBAD0 [...]>
Received: from ( []) by (Postfix) with SMTP id DC90B19B82FA for <bug-PHP-Serialization [...]>; Tue, 3 Nov 2009 14:53:00 -0500 (EST)
Received: (qmail 7911 invoked by uid 103); 3 Nov 2009 19:52:59 -0000
Received: from ( by with QMQP; 3 Nov 2009 19:52:59 -0000
Received: from alpha.Xerox.COM (HELO ( by (qpsmtpd/0.80) with ESMTP; Tue, 03 Nov 2009 11:52:58 -0800
Received: from ([]) by with SMTP id <321846(2)>; Tue, 3 Nov 2009 11:52:46 PST
Received: from ([]) by ([]) with mapi; Tue, 3 Nov 2009 11:52:44 -0800
Delivered-To: cpan-bug+PHP-Serialization [...]
Subject: type a
Return-Path: <Joshua.Moore [...]>
X-Original-To: bug-PHP-Serialization [...]
Thread-Index: AcpcvzRlhO9Q5Fu0QXmwC6IulihG2g==
Date: Tue, 3 Nov 2009 11:52:42 PST
X-Spam-Level: *
Thread-Topic: type a
To: <bug-PHP-Serialization [...]>
Accept-Language: en-US
From: <Joshua.Moore [...]>
Content-Length: 0
content-type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 2058
#!/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. . . .
content-type: text/html; charset="utf-8"
Content-Transfer-Encoding: quoted-printable
X-RT-Original-Encoding: us-ascii
Content-Length: 12513
Download (untitled) / with headers
text/html 12.2k

Message body is not shown because it is too large.

MIME-Version: 1.0
In-Reply-To: <07595F45EC85124E8D1C4D245AE6DC0099BF0DBAD0 [...]>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
References: <07595F45EC85124E8D1C4D245AE6DC0099BF0DBAD0 [...]>
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2362-1289272523-150.51085-0-0 [...]>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 121
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