Re: cvs: php-src / run-tests.php
| From: | Antony Dovgal | Date: | Tue, 02 Aug 2005 10:24:12 +0000 |
| Subject: | Re: cvs: php-src / run-tests.php | ||
| References: | 1 | Groups: | php.cvs |
| Request: | Send a blank email to php-cvs+get-33155@lists.php.net to get a copy of this message | ||
On Fri, 29 Jul 2005 17:25:41 -0000
"Marcus Boerger" <helly@php.net> wrote:
> helly Fri Jul 29 13:25:41 2005 EDT
>
> Modified files:
> /php-src run-tests.php
> Log:
> - Add ENV support (mike)
>
> + if (empty($section_text['ENV'])) {
> + $cmd = "$php$pass_options$ini_settings -f \"$tmp_file\" $args
> 2>&1";
> + } else {
> + $cmd = "$php$pass_options$ini_settings < \"$tmp_file\" $args
> 2>&1";
> + }
Executing tests this way (php < script.php) you break all the tests that use __FILE__ (as there
is no __FILE__ in this case).
--
Wbr,
Antony Dovgal