Re: unserialize returns nothing.

From: Date: Sat, 21 Apr 2001 16:33:29 +0000
Subject: Re: unserialize returns nothing.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-49681@lists.php.net to get a copy of this message
Taylor, Stewart wrote: > I'm fetching a serialized array from a database but when I call > unserialize() the function returns false. > > Any suggestions as to why unserialize is returning false? I once had this problem when I serialized an array which contained a variable from global namespace which was empty, but only when switching from HTTP to HTTPS. The serialized array had one entry with value "N" (no type or length), which couldn't be unserialized. Checking if the variable had a value and assigning 0 if not before putting it into the array solved the problem. regards Wagner -- 'When the computer industry is at a low, beer drinking is at a high.' Jon 'maddog' Hall said. By combining both industries into a single course you can make sure you always have a job.

« previous php.general (#49681) next »