Re: [PHP4BETA] _very_ specific memory leak in Zend

From: Date: Sat, 15 Apr 2000 13:33:55 +0000
Subject: Re: [PHP4BETA] _very_ specific memory leak in Zend
References: 1  Groups: php.dev php.version4 
Request: Send a blank email to php-dev+get-17928@lists.php.net to get a copy of this message
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@zend.com> http://www.zend.com/

« previous php.dev (#17928) next »