summaryrefslogtreecommitdiff
path: root/ext/pcntl/tests/pcntl_exec_2.phpt
diff options
context:
space:
mode:
authorFelipe Pena <felipe@php.net>2011-06-24 19:18:06 +0000
committerFelipe Pena <felipe@php.net>2011-06-24 19:18:06 +0000
commitb632c3ac0686ceffa45489d5d229f7ff4a0a16e7 (patch)
tree40c1d051399da8e0a127162cbb2a332e0d81556d /ext/pcntl/tests/pcntl_exec_2.phpt
parent09607226d4d418421119736f8137189efc4602ff (diff)
downloadphp-git-b632c3ac0686ceffa45489d5d229f7ff4a0a16e7.tar.gz
- Added SKIPIF
Diffstat (limited to 'ext/pcntl/tests/pcntl_exec_2.phpt')
-rw-r--r--ext/pcntl/tests/pcntl_exec_2.phpt7
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")) {