note 36323 deleted from function.unserialize by vincent

From: Date: Sun, 05 Oct 2003 10:37:55 +0000
Subject: note 36323 deleted from function.unserialize by vincent
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-57835@lists.php.net to get a copy of this message
Note Submitter: johan_php@popbandetleif.cjb.net ---- Note that in case the passed string is not unserializeable, FALSE is returned but it is not of boolean type. Therefor: // this will never happen if (unserialize( not unserializeable data) === false) { echo("Error message"); } // use this instead if (unserialize( not unserializeable data) == false) { echo("Error message"); }

« previous php.notes (#57835) next »