php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #7806 settype doesn't work correctly
Submitted: 2000-11-14 07:06 UTC Modified: 2000-12-15 19:55 UTC
From: mausz at flyingdog dot de Assigned:
Status: Closed Package: Scripting Engine problem
PHP Version: 4.0.3pl1 OS: Linux, OpenBSD
Private report: No CVE-ID: None
 [2000-11-14 07:06 UTC] mausz at flyingdog dot 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.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2000-11-14 07:09 UTC] stas@php.net
What are you trying to do with that settype? What is it's
purpose?

 [2000-12-15 19:55 UTC] sniper@php.net
No feedback.
 
PHP Copyright © 2001-2026 The PHP Group
All rights reserved.
Last updated: Tue Jul 07 19:00:02 2026 UTC