PHP 4.0 Bug #7806 Updated: settype doesn't work correctly
| From: | sniper@php.net | Date: | Sat, 16 Dec 2000 00:55:56 +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-41543@lists.php.net to get a copy of this message | ||
ID: 7806
Updated by: sniper
Reported By: mausz@flyingdog.de
Old-Status: Feedback
Status: Closed
Bug Type: Scripting Engine problem
Assigned To:
Comments:
No feedback.
Previous Comments:
---------------------------------------------------------------------------
[2000-11-14 07:09:45] stas@php.net
What are you trying to do with that settype? What is it's
purpose?
---------------------------------------------------------------------------
[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