|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-03-20 03:34 UTC] rasmus at cvs dot php dot net
[2001-02-10 15:37 UTC] jimw@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 15:00:01 2025 UTC |
If I specify to new an object instance variabe as class name of another object it gives me the error below. Try the script below under PHP 3. PHP 4 does not have this problem. Fatal error: Object is not a class in test.php on line 10 <? class some_class { var $variable="some_class"; }; $object=new some_class; $variable=$object->variable; $another_object=new $variable; $another_object=new $object->variable; ?>