Re: 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
Hi,
aside from the actual question: run-tests.php already makes heavy usage
of realpath, so it's impossible to run the tests on a system without
realpath.
$ grep realpath run-tests.php | wc -l
14
johannes
On Sun, 2011-09-04 at 16:41 +0200, Ferenc Kovacs wrote:
> 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
> <[email protected]> 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 <[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 (8 messages)