note 16524 added to language.oop
| From: | andrew at php2 dot chek dot com | Date: | Sat, 03 Nov 2001 02:01:14 +0000 |
| Subject: | note 16524 added to language.oop | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-20322@lists.php.net to get a copy of this message | ||
It appears as though php3 will not accept the object pointer of an object that doesn't exist.
eg. say i go $a->bla; where $a is an unassigned variable, php3 will say, $a isn't a valid
object.
My quick'n'dirty solution was to declare $a = new object; after creating "class
object { }"
(In php4 of course, there is no such problem).
--
http://www.php.net/manual/en/language.oop.php
http://master.php.net/manage/user-notes.php?action=edit+16524
http://master.php.net/manage/user-notes.php?action=delete+16524
http://master.php.net/manage/user-notes.php?action=reject+16524