PHP 4.0 Bug #2313: PHP4 unserializes a PHP3 serialized object as a boolean
| From: | mlemos at acm dot org | Date: | Thu, 16 Sep 1999 00:15:29 +0000 |
| Subject: | PHP 4.0 Bug #2313: PHP4 unserializes a PHP3 serialized object as a boolean | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10983@lists.php.net to get a copy of this message | ||
From: mlemos@acm.org
Operating system: LinuX RH 5.2
PHP version: 4.0 Latest CVS (15/09/1999)
PHP Bug Type: Misbehaving function
Bug description: PHP4 unserializes a PHP3 serialized object as a boolean
Try this example to see the problem.
<?
$object=unserialize("o:14:{s:4:\"test\";i:0;}");
echo GetType($object),"\n",serialize($object),"\n";
?>