php4-beta | 200004
Date: 04/15/00
- Next message: Danny Heijl: "[PHP4BETA] cvs: /php4/ext/informix ifx.dsp ifx.dsw"
- Previous message: Andi Gutmans: "Re: [PHP4BETA] _very_ specific memory leak in Zend"
- In reply to: Andi Gutmans: "Re: [PHP4BETA] _very_ specific memory leak in Zend"
- Next in thread: chagenbu <email protected>: "Re: [PHP4BETA] _very_ specific memory leak in Zend"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 03:13 PM 4/15/00 +0200, Andi Gutmans wrote:
>Hi,
>
>The "use" construct won't be supported in PHP 4. It was introduced for
>PEAR and still hasn't been finalized.
>You should really be using require_once() (or include_once()) with the
>file extension.
>In any case, note that require_once() and include_once() work differently
>(one at compile-time the other at run-time) so make sure that you are
>consistent with their uses. If you use require_once() in one place all
>places need to use require_once().
To clarify what I wrote. You can still use both include_once() and
require_once() in the same script, you just can't use both on the same file.
For example the following is fine:
<?php
include_once("foo");
require_once("bar");
?>
The following isn't:
<?php
include_once("foo");
require_once("foo");
?>
Andi
--- Andi Gutmans <andi <email protected>> http://www.zend.com/-- PHP 4.0 Beta Mailing List <http://www.php.net/version4/> To unsubscribe, e-mail: php4beta-unsubscribe <email protected> For additional commands, e-mail: php4beta-help <email protected> To contact the list administrators, e-mail: php4beta-admin <email protected>
- Next message: Danny Heijl: "[PHP4BETA] cvs: /php4/ext/informix ifx.dsp ifx.dsw"
- Previous message: Andi Gutmans: "Re: [PHP4BETA] _very_ specific memory leak in Zend"
- In reply to: Andi Gutmans: "Re: [PHP4BETA] _very_ specific memory leak in Zend"
- Next in thread: chagenbu <email protected>: "Re: [PHP4BETA] _very_ specific memory leak in Zend"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

