PHP 4.0 Bug #4175: new class_name doesn't work in class definition
| From: | miroslav dot sulc at startnet dot cz | Date: | Tue, 18 Apr 2000 11:37:41 +0000 |
| Subject: | PHP 4.0 Bug #4175: new class_name doesn't work in class definition | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-18000@lists.php.net to get a copy of this message | ||
From: miroslav.sulc@startnet.cz
Operating system: Windows 98
PHP version: 4.0 Release Candidate 1
PHP Bug Type: Scripting Engine problem
Bug description: new class_name doesn't work in class definition
In my script I have:
some_class
{
var $variable = new other_class_name;
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
function ...
}
I get this error:
Parse error: parse error in class_file.php on line 9 (the underlined row)
My script worked fine in PHP3.
Is it erroreous syntax or error in engine?
Thank you.