summaryrefslogtreecommitdiff
path: root/ext/pcntl/tests/pcntl_exec.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/pcntl/tests/pcntl_exec.phpt')
-rw-r--r--ext/pcntl/tests/pcntl_exec.phpt15
1 files changed, 15 insertions, 0 deletions
diff --git a/ext/pcntl/tests/pcntl_exec.phpt b/ext/pcntl/tests/pcntl_exec.phpt
new file mode 100644
index 0000000..9d2ec1d
--- /dev/null
+++ b/ext/pcntl/tests/pcntl_exec.phpt
@@ -0,0 +1,15 @@
+--TEST--
+pcntl_exec()
+--SKIPIF--
+<?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";
+pcntl_exec(getenv("TEST_PHP_EXECUTABLE"));
+echo "nok\n";
+?>
+--EXPECT--
+ok