RE: [PHP] Unserialize stopped working after php & db upgrade

From: Date: Thu, 19 Sep 2002 06:50:25 +0000
Subject: RE: [PHP] Unserialize stopped working after php & db upgrade
Groups: php.general 
Request: Send a blank email to php-general+get-116851@lists.php.net to get a copy of this message
If you've seen a serialised variable a few times, you get to know how one is set up and how to interpret it. If you're using serialised variables, I'd suggest serialising a few simple ones and see what the output looks like so that you can see when things are going amiss. This is one way that I debug things. Instead of var_dump()ing or print_r()ing something, I'll "echo serialize(...)". It's more compact than var_dump/print_r Martin -----Original Message----- From: Geoff Caplan [mailto:geoff@advantae.com] Sent: Thursday, September 19, 2002 3:36 PM To: php-general@lists.php.net Subject: [PHP] Unserialize stopped working after php & db upgrade Paul, PN> It looks like that string has been serialized multiple times Many thanks - that is the problem! I think that this qualifies as one of my more creative bugs... Can I ask you how you spotted this? Pretty impressive, considering you only had the string itself to go on. Thanks again, -- Geoff Caplan Advantae Ltd mailto:geoff@advantae.com http://www.advantae.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#116851) next »