]> granicus.if.org Git - php/commitdiff
- Add check for proc_open() being available
authorDerick Rethans <derick@php.net>
Tue, 18 Feb 2003 20:07:59 +0000 (20:07 +0000)
committerDerick Rethans <derick@php.net>
Tue, 18 Feb 2003 20:07:59 +0000 (20:07 +0000)
run-tests.php

index f393b5fedd5f00136a103b6bc3dd1036c10c360c..1744e0a02a60f385294f2eed86d19d9f6a7dd241 100755 (executable)
@@ -57,6 +57,19 @@ NO_PCRE_ERROR;
 exit;
 }
 
+if (!function_exists("proc_open")) {
+       echo <<<NO_PROC_OPEN_ERROR
+
++-----------------------------------------------------------+
+|                       ! ERROR !                           |
+| The test-suite requires that proc_open() is available.    |
+| Please check if you disabled it in php.ini.               |
++-----------------------------------------------------------+
+
+NO_PROC_OPEN_ERROR;
+exit;
+}
+
 // change into the PHP source directory.
 
 if (getenv('TEST_PHP_SRCDIR')) {