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

This commit is contained in:
Ferenc Kovacs 2011-09-02 20:28:39 +00:00
parent 2d52a6934a
commit 7632d09a81

View File

@ -4,7 +4,7 @@ Bug #46024 stream_select() doesn't return the correct number
<?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"