note 11457 rejected from language.oop by sander
| From: | sander@php.net | Date: | Sat, 06 Apr 2002 18:59:25 +0000 |
| Subject: | note 11457 rejected from language.oop by sander | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-28735@lists.php.net to get a copy of this message | ||
[Editor's note: See the info in:
http://www.php.net/manual/en/migration4.php
The behavior has changed, you can init that member var inside the constructor of your class, but not
assign an object when declaring it, a scalar would be OK.]
This works okay in PHP3 but I get a parser error when using PHP4.03pl1:
class NavClass {
var $db = new DB_example;
.
.
.
functions
.
.
}
Is nesting classes a bad idea?