PHP 4.0 Bug #2112: Segmentation fault when accessing a unserialized object
| From: | mlemos at acm dot org | Date: | Fri, 20 Aug 1999 15:25:14 +0000 |
| Subject: | PHP 4.0 Bug #2112: Segmentation fault when accessing a unserialized object | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10027@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 (20/08/1999)
PHP Bug Type: Reproduceable crash
Bug description: Segmentation fault when accessing a unserialized object
The following code makes PHP 4 crash with a segmentation fault right when
the unserialized object is accessed.
<?
class test_class
{
var $variable=1;
};
$object=new test_class;
$object=unserialize(serialize($object));
echo $object->variable,"\n";
?>