RE: [PHP-QA] FW: [PHP-NOTES] note 12845 added to language.oop.php
| From: | Liz | Date: | Fri, 11 May 2001 19:01:41 +0000 |
| Subject: | RE: [PHP-QA] FW: [PHP-NOTES] note 12845 added to language.oop.php | ||
| References: | 1 | Groups: | php.qa |
| Request: | Send a blank email to php-qa+get-3243@lists.php.net to get a copy of this message | ||
Surely they should be using require_once? Then it shouldnt happen? Or am I
missing the point? as surely
require("a.php");
require("d.php");
will always error if d.php contains require("a.php"): .. so.. surely (and I'd
have thought always require_once would be the best one to use.. no matter
what..
> -----Original Message-----
> From: James Moore [mailto:jmoore@php.net]
> Sent: Friday, May 11, 2001 8:00 PM
> To: PHP Quality Assurance Team Mailing List
> Subject: [PHP-QA] FW: [PHP-NOTES] note 12845 added to language.oop.php
>
>
> Can anyone verify this?? If it acts as I think the user implies it does its
> a bug.
>
> - James
>
> > -----Original Message-----
> > From: andrew@NOSPAM.mukau.net [mailto:andrew@NOSPAM.mukau.net]
> > Sent: 11 May 2001 04:41
> > To: php-notes@lists.php.net
> > Subject: [PHP-NOTES] note 12845 added to language.oop.php
> >
> >
> > 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.
> >
> > http://www.php.net/manual/en/language.oop.php
> >
> >
> > --
> > PHP Notes Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: php-notes-unsubscribe@lists.php.net
> > For additional commands, e-mail: php-notes-help@lists.php.net
> > To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
> --
> PHP Quality Assurance Mailing List <http://www.php.net/>
> To unsubscribe, e-mail: php-qa-unsubscribe@lists.php.net
> For additional commands, e-mail: php-qa-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>