Hi

Afair realpath() is not always available, so maybe a function_exist() check 
here?

Sendt fra min iPhone

Den 02/09/2011 kl. 22.28 skrev Ferenc Kovacs <tyr...@php.net>:

> tyrael                                   Fri, 02 Sep 2011 20:28:39 +0000
> 
> Revision: http://svn.php.net/viewvc?view=revision&revision=316056
> 
> Log:
> pass an absolute path for the php binary to proc_open, without this the test 
> would fail if ran with a relative TEST_DEV_EXECUTABLE
> 
> Changed paths:
>    U   php/php-src/branches/PHP_5_3/ext/standard/tests/streams/bug46024.phpt
>    U   php/php-src/branches/PHP_5_4/ext/standard/tests/streams/bug46024.phpt
>    U   php/php-src/trunk/ext/standard/tests/streams/bug46024.phpt
> 
> Modified: 
> php/php-src/branches/PHP_5_3/ext/standard/tests/streams/bug46024.phpt
> ===================================================================
> --- php/php-src/branches/PHP_5_3/ext/standard/tests/streams/bug46024.phpt    
> 2011-09-02 20:02:12 UTC (rev 316055)
> +++ php/php-src/branches/PHP_5_3/ext/standard/tests/streams/bug46024.phpt    
> 2011-09-02 20:28:39 UTC (rev 316056)
> @@ -4,7 +4,7 @@
> <?php if (!getenv('TEST_PHP_EXECUTABLE')) die("skip TEST_PHP_EXECUTABLE not 
> defined"); ?>
> --FILE--
> <?php
> -$php = getenv('TEST_PHP_EXECUTABLE');
> +$php = realpath(getenv('TEST_PHP_EXECUTABLE'));
> $pipes = array();
> $proc = proc_open(
>    "$php -n -i"
> 
> Modified: 
> php/php-src/branches/PHP_5_4/ext/standard/tests/streams/bug46024.phpt
> ===================================================================
> --- php/php-src/branches/PHP_5_4/ext/standard/tests/streams/bug46024.phpt    
> 2011-09-02 20:02:12 UTC (rev 316055)
> +++ php/php-src/branches/PHP_5_4/ext/standard/tests/streams/bug46024.phpt    
> 2011-09-02 20:28:39 UTC (rev 316056)
> @@ -4,7 +4,7 @@
> <?php if (!getenv('TEST_PHP_EXECUTABLE')) die("skip TEST_PHP_EXECUTABLE not 
> defined"); ?>
> --FILE--
> <?php
> -$php = getenv('TEST_PHP_EXECUTABLE');
> +$php = realpath(getenv('TEST_PHP_EXECUTABLE'));
> $pipes = array();
> $proc = proc_open(
>    "$php -n -i"
> 
> Modified: php/php-src/trunk/ext/standard/tests/streams/bug46024.phpt
> ===================================================================
> --- php/php-src/trunk/ext/standard/tests/streams/bug46024.phpt    2011-09-02 
> 20:02:12 UTC (rev 316055)
> +++ php/php-src/trunk/ext/standard/tests/streams/bug46024.phpt    2011-09-02 
> 20:28:39 UTC (rev 316056)
> @@ -4,7 +4,7 @@
> <?php if (!getenv('TEST_PHP_EXECUTABLE')) die("skip TEST_PHP_EXECUTABLE not 
> defined"); ?>
> --FILE--
> <?php
> -$php = getenv('TEST_PHP_EXECUTABLE');
> +$php = realpath(getenv('TEST_PHP_EXECUTABLE'));
> $pipes = array();
> $proc = proc_open(
>    "$php -n -i"
> 
> -- 
> PHP CVS Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to