Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

serialize

Status
Not open for further replies.

mcvdmvs

Technical User
Sep 18, 2000
172
NL
Hello,
Im running PHP4 and im trying to unserialize a serialize string. The serialize will work, but i cant get it unserialized. It's done with objects, and te unserialized result should be an object. But with print_r($unserialized string) it is empty...
I dunno if it is a bug in php or something, it works on another server with a different version of php4 mcvdmvs
mick@nederland.net

knows: html, JavaScript, dhtml, css, php, mysql, postgresql, xml, linux
to learn: java, c++, perl, python
 
Have you tried printing the serialized string, to make sure you actually have your object data in there?
 
I have had no problems serializing and unserializing objects on a PHP 4.0.4pl1 and 4.0.6 install. I think there were some bugs related to object serializing in some earlier versions, though.

Have you tried any other objects, just to test?
 
jep i also guessed it was in my php version but on the man pages they said just the earlier versions of my version had the bug. So i think i just have to upgrade then to 4.0.6.

Thanx Rycamor mcvdmvs
mick@nederland.net

knows: html, JavaScript, dhtml, css, php, mysql, postgresql, xml, linux
to learn: java, c++, perl, python
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top