php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #2313 PHP4 unserializes a PHP3 serialized object as a boolean
Submitted: 1999-09-15 20:15 UTC Modified: 1999-09-16 04:07 UTC
From: mlemos at acm dot org Assigned:
Status: Closed Package: Misbehaving function
PHP Version: 4.0 Latest CVS (15/09/1999) OS: LinuX RH 5.2
Private report: No CVE-ID: None
 [1999-09-15 20:15 UTC] mlemos at acm dot org
Try this example to see the problem.

<?

$object=unserialize("o:14:{s:4:\"test\";i:0;}");
echo GetType($object),"\n",serialize($object),"\n";

?>

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [1999-09-16 04:07 UTC] thies at cvs dot php dot net
fixed in CVS!
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Thu Oct 08 16:00:01 2026 UTC