xref: /PHP-7.0/ext/pcntl/tests/pcntl_exec.phpt (revision a03f0943)
1--TEST--
2pcntl_exec()
3--SKIPIF--
4<?php
5if (!extension_loaded("pcntl")) print "skip";
6if (!getenv("TEST_PHP_EXECUTABLE") || !is_executable(getenv("TEST_PHP_EXECUTABLE"))) die("skip TEST_PHP_EXECUTABLE not set");
7?>
8--FILE--
9<?php
10echo "ok\n";
11pcntl_exec(getenv("TEST_PHP_EXECUTABLE"), ['-n']);
12echo "nok\n";
13?>
14--EXPECT--
15ok
16