Re: svn: /php/php-src/ branches/PHP_5_3/ext/standard/tests/streams/bug46024.phpt branches/PHP_5_4/ext/standard/tests/streams/bug46024.phpt
trunk/ext/standard/tests/streams/bug46024.phpt

From: Date: Fri, 02 Sep 2011 23:37:11 +0000
Subject: Re: svn: /php/php-src/ branches/PHP_5_3/ext/standard/tests/streams/bug46024.phpt branches/PHP_5_4/ext/standard/tests/streams/bug46024.phpt
trunk/ext/standard/tests/streams/bug46024.phpt
References: 1  Groups: php.cvs 
Request: Send a blank email to [email protected] to get a copy of this message
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 <[email protected]>:

> 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


Thread (2 messages)

  • Ferenc Kovacs
    • Kalle Sommer NielsenRe: svn: /php/php-src/ branches/PHP_5_3/ext/standard/tests/streams/bug46024.phpt branches/PHP_5_4/ext/standard/tests/streams/bug46024.phpt
      trunk/ext/standard/tests/streams/bug46024.phpt
« previous php.cvs (#66165) next »