Re: require_once versus include_once
| From: | Jon Parise | Date: | Fri, 28 Jul 2000 14:38:48 +0000 |
| Subject: | Re: require_once versus include_once | ||
| References: | 1 | Groups: | php.pear |
| Request: | Send a blank email to php-pear+get-174@lists.php.net to get a copy of this message | ||
On Fri, Jul 28, 2000 at 10:20:54AM -0400, Chuck Hagenbuch wrote:
> We have a problem in that require_once and include_once can include
> the same file. Now, if you have an application that dynamically
> includes some code - maybe it dynamically includes PEAR.php if it
> needs it - and it also always uses, say, the new Socket.php from
> Stig that uses PEAR.php - then you can get a collision.
[snip]
> Am I being clear? Does anyone else see the problem?
So, if I'm following you correctly, require_once and include_once
should be checking the same pool of already required / included files.
--
Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/ : Computer Science House
Member