Re: [PHP4BETA] require semantics
| From: | Thies C. Arntzen | Date: | Thu, 28 Oct 1999 19:41:21 +0000 |
| Subject: | Re: [PHP4BETA] require semantics | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5767@lists.php.net to get a copy of this message | ||
sasha, require will turn into include if the filename is not a constant.
that would explain your behaviour.
zeev, andi - am i right?
tc
On Thu, 28 Oct 1999, Sascha Schumann wrote:
> First, is
>
> require($variable);
>
> valid?
>
> If it is, why does
>
> for($i = 1; $i <= 3; $i++) {
> require($i);
> }
>
> behave differently in PHP 3.0 vs 4.0?
>
> PHP 3.0 produces:
>
> test1
> test1
> test1
>
> PHP 4.0 produces:
>
> test1
> test2
> test3
>
> --
>
> Regards,
>
> Sascha Schumann
> Consultant
>
> --
> PHP 4.0 Beta Mailing List <http://www.php.net/version4/>
> To unsubscribe, e-mail: php4beta-unsubscribe@lists.php.net
> For additional commands, e-mail: php4beta-help@lists.php.net
> To contact the list administrators, e-mail: php4beta-admin@lists.php.net
>
>
Thies C. Arntzen "One Big-Mac, Small Fries and a Coke!"
Digital Collections Phone +49 40 235350 Fax +49 40 23535180
Hammerbrookstr. 93 20097 Hamburg / Germany