PHP 4.0 Bug #2035: unserialize on object arrays
| From: | jhughes at solidtechnology dot com | Date: | Wed, 11 Aug 1999 20:25:01 +0000 |
| Subject: | PHP 4.0 Bug #2035: unserialize on object arrays | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9760@lists.php.net to get a copy of this message | ||
From: jhughes@solidtechnology.com
Operating system: Linux
PHP version: 4.0 Beta 2
PHP Bug Type: Reproduceable crash
Bug description: unserialize on object arrays
<%
class a_class {
var $value;
}
$aclass = new a_class;
$aclass->value = 1;
// PHP3 and PHP4 both return the same serialized string.
$temp = serialize($aclass);
// This prints "Object" in PHP3, and dumps a core in 4.
echo unserialize($temp);
%>