diff options
author | Wez Furlong <wez@php.net> | 2003-12-05 13:45:00 +0000 |
---|---|---|
committer | Wez Furlong <wez@php.net> | 2003-12-05 13:45:00 +0000 |
commit | c92a2219efed2cd54633bc56d7fdc86c5175e05e (patch) | |
tree | fdc91cbe20dd5782c513f2e1b278335cd7de65c0 /run-tests.php | |
parent | 98f1021dd85fac47ac37778e955ed42a2a608215 (diff) | |
download | php-git-c92a2219efed2cd54633bc56d7fdc86c5175e05e.tar.gz |
Add optional array argument to proc_open() to specify additional
options for the child process.
The first option is "suppress_errors" which will disable any
dialog boxes that arise from missing DLL's and suppress the
GPF dialog.
Use this new feature in the test suite, so that crashing tests don't block the test run; useful for un-attended execution.
Diffstat (limited to 'run-tests.php')
-rwxr-xr-x | run-tests.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/run-tests.php b/run-tests.php index b1493f5729..0b4f6afa13 100755 --- a/run-tests.php +++ b/run-tests.php @@ -117,6 +117,7 @@ if (getenv('TEST_PHP_EXECUTABLE')) { putenv("TEST_PHP_EXECUTABLE=$php"); } } + if (empty($php) || !file_exists($php)) { error("environment variable TEST_PHP_EXECUTABLE must be set to specify PHP executable!"); } @@ -588,7 +589,7 @@ function system_with_timeout($commandline) 0 => array('pipe', 'r'), 1 => array('pipe', 'w'), 2 => array('pipe', 'w') - ), $pipes); + ), $pipes, null, null, array("suppress_errors" => true)); if (!$proc) return false; |