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: | Ferenc Kovacs | Date: | Sun, 04 Sep 2011 14:41: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 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-55189@lists.php.net to get a copy of this message | ||
Sorry, for the late reply, I missed this mail:
I checked the documentation, but I can't see a mention about this
http://php.net/realpath
could somebody confirm this?
On Sat, Sep 3, 2011 at 1:37 AM, Kalle Sommer Nielsen
<kalle.php@gmail.com> wrote:
> 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 <tyrael@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
>