PHP 4.0 Bug #7806: settype doesn't work correctly
| From: | mausz at flyingdog dot de | Date: | Tue, 14 Nov 2000 12:06:51 +0000 |
| Subject: | PHP 4.0 Bug #7806: settype doesn't work correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38057@lists.php.net to get a copy of this message | ||
From: mausz@flyingdog.de
Operating system: Linux, OpenBSD
PHP version: 4.0.3pl1
PHP Bug Type: Scripting Engine problem
Bug description: settype doesn't work correctly
$obj->test="test";
settype($obj->test2,"object");
$obj->test2->test="subobject test";
echo serialize($obj->test2);
echo "<br>";
echo serialize($obj);
prints out two different results in PHP 4.03pl1 and PHP 4.02.
The settype command is the problem:
Without the settype command it works correct in PHP4.03pl1.
--
Edit Bug report at: http://bugs.php.net/?id=7806&edit=1