PHP 4.0 Bug #7806 Updated: settype doesn't work correctly
| From: | stas@php.net | Date: | Tue, 14 Nov 2000 12:09:45 +0000 |
| Subject: | PHP 4.0 Bug #7806 Updated: settype doesn't work correctly | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-38058@lists.php.net to get a copy of this message | ||
ID: 7806
Updated by: stas
Reported By: mausz@flyingdog.de
Status: Feedback
Bug Type: Scripting Engine problem
Assigned To:
Comments:
What are you trying to do with that settype? What is it's
purpose?
Previous Comments:
---------------------------------------------------------------------------
[2000-11-14 07:06:51] mausz@flyingdog.de
$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.
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=7806