note 54293 added to ref.overload
| From: | dreamscape at osu1 dot php dot net | Date: | Wed, 29 Jun 2005 20:12:54 +0000 |
| Subject: | note 54293 added to ref.overload | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-91157@lists.php.net to get a copy of this message | ||
I didn't see this posted anywhere, so here it is:
In PHP 4, if you are calling your overloaded class A from inside class B, you MUST include and
overload class A before including class B.
I struggled with this one for some time, before attempting to change the include order of the
classes, which then worked great.
----
Manual Page -- http://www.php.net/manual/en/ref.overload.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+54293
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+54293&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+54293&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+54293&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+54293&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+54293&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+54293&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+54293&report=yes
Search -- http://master.php.net/manage/user-notes.php