Re: [Q] use of 'use' available?
| From: | chagenbu at wso dot williams dot edu | Date: | Wed, 31 May 2000 18:12:17 +0000 |
| Subject: | Re: [Q] use of 'use' available? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-744@lists.php.net to get a copy of this message | ||
Quoting Zeev Suraski <zeev@zend.com>:
> No, you can't/shouldn't make use of 'use'. It was only available in a few
> alpha/beta versions of PHP 4.0, and has been deprecated. Use
> require_once() instead.
Is this a permanent decision, then? I was under the impression that it just
needed work and would be re-introduced later...
The only problem I see with the require_once/include_once combo is that from
what I remember being said about them, they don't check each other's lists of
included files? Could that be changed?
Ie, if you do require_once 'mylib.php', and then later on some code that you use
(a different library) relies on mylib.php, and dynamically includes it only in
the cases where it needs it by using include_once, it won't be included the
second time?
-chuck