diff options
Diffstat (limited to 'ext/pcntl/tests/pcntl_exec_2.phpt')
| -rw-r--r-- | ext/pcntl/tests/pcntl_exec_2.phpt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/ext/pcntl/tests/pcntl_exec_2.phpt b/ext/pcntl/tests/pcntl_exec_2.phpt index d1672d2a30..02b5e22aa4 100644 --- a/ext/pcntl/tests/pcntl_exec_2.phpt +++ b/ext/pcntl/tests/pcntl_exec_2.phpt @@ -1,7 +1,12 @@ --TEST-- pcntl_exec() 2 --SKIPIF-- -<?php if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); ?> +<?php + +if (!extension_loaded("pcntl")) print "skip"; +if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set"); + +?> --FILE-- <?php if (getenv("PCNTL_EXEC_TEST_IS_CHILD")) { |
