Connecting Tech Pros Worldwide Help | Site Map

Specification for serialize()

 
LinkBack Thread Tools Search this Thread
  #1  
Old March 16th, 2008, 01:15 AM
Daniel Klein
Guest
 
Posts: n/a
Default Specification for serialize()

It looks like I'm going to have to write programs in another language to
encode and decode php serialized data. I am really only interested in the
permutations of how it encodes multi-dimensioned arrays holding various data
types.

Is there a formal spec for how serialize() does it's thing? I can certainly
intuit much of this from looking at the results but I don't want to miss
coding for some (obscure) data type.

Daniel Klein

  #2  
Old March 16th, 2008, 10:05 PM
C. (http://symcbean.blogspot.com/)
Guest
 
Posts: n/a
Default Re: Specification for serialize()

On 16 Mar, 01:04, Daniel Klein <dani...@featherbrain.netwrote:
Quote:
It looks like I'm going to have to write programs in another language to
encode and decode php serialized data. I am really only interested in the
permutations of how it encodes multi-dimensioned arrays holding various data
types.
>
Is there a formal spec for how serialize() does it's thing? I can certainly
intuit much of this from looking at the results but I don't want to miss
coding for some (obscure) data type.
>
Daniel Klein
Its fairly straightforward - if you serialize some stuff and write it
to disk you'll see - but it always feels wrong to me to use
serialization as a storage / messaging format since the format does
not seem to have a formal, published definition.

How painful could it it be to write the data in a format you define
yourself? Or use an off-the-shelf XML mapper?

C.
  #3  
Old March 17th, 2008, 04:45 PM
Daniel Klein
Guest
 
Posts: n/a
Default Re: Specification for serialize()

On Sun, 16 Mar 2008 14:56:28 -0700 (PDT), "C.
(http://symcbean.blogspot.com/)" <colin.mckinnon@gmail.comwrote:
Quote:
>On 16 Mar, 01:04, Daniel Klein <dani...@featherbrain.netwrote:
Quote:
>It looks like I'm going to have to write programs in another language to
>encode and decode php serialized data. I am really only interested in the
>permutations of how it encodes multi-dimensioned arrays holding various data
>types.
>>
>Is there a formal spec for how serialize() does it's thing? I can certainly
>intuit much of this from looking at the results but I don't want to miss
>coding for some (obscure) data type.
>>
>Daniel Klein
>
>Its fairly straightforward - if you serialize some stuff and write it
>to disk you'll see - but it always feels wrong to me to use
>serialization as a storage / messaging format since the format does
>not seem to have a formal, published definition.
>
>How painful could it it be to write the data in a format you define
>yourself? Or use an off-the-shelf XML mapper?
>
>C.
The intention was to use the result of the serialization as an intermediate
format, not for database storage.

But you're right, I am better off rolling my own.

Dan
 

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Popular Articles

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over 220,989 network members.