diff options
| author | Felipe Pena <felipe@php.net> | 2011-06-24 19:18:06 +0000 |
|---|---|---|
| committer | Felipe Pena <felipe@php.net> | 2011-06-24 19:18:06 +0000 |
| commit | b632c3ac0686ceffa45489d5d229f7ff4a0a16e7 (patch) | |
| tree | 40c1d051399da8e0a127162cbb2a332e0d81556d /ext/pcntl/tests/pcntl_exec.phpt | |
| parent | 09607226d4d418421119736f8137189efc4602ff (diff) | |
| download | php-git-b632c3ac0686ceffa45489d5d229f7ff4a0a16e7.tar.gz | |
- Added SKIPIF
Diffstat (limited to 'ext/pcntl/tests/pcntl_exec.phpt')
| -rw-r--r-- | ext/pcntl/tests/pcntl_exec.phpt | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ext/pcntl/tests/pcntl_exec.phpt b/ext/pcntl/tests/pcntl_exec.phpt index 756fc959c3..9d2ec1dcf5 100644 --- a/ext/pcntl/tests/pcntl_exec.phpt +++ b/ext/pcntl/tests/pcntl_exec.phpt @@ -1,7 +1,10 @@ --TEST-- pcntl_exec() --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 echo "ok\n"; |
