note 12845 deleted from language.oop by vincent
| From: | vincent@php.net | Date: | Thu, 11 Sep 2003 19:54:05 +0000 |
| Subject: | note 12845 deleted from language.oop by vincent | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-56191@lists.php.net to get a copy of this message | ||
Note Submitter: andrew@NOSPAM.mukau.net
----
[Editor's note: to avoid this type of problems, you should be using include_once() instead, see
the appropriate manual page entry]
Hi there... Something I noticed ...
If you have a Class A which
requires Class B (eg. require ('B.inc'); )
If you have two more classes extending A:
Class C extends A
Class D extends A
you may run into some problems if your script requires both C and D, - you will get an error saying
you are redefining Class B. The solution is to require only class C or class D in a script.