blob: b1225221ded0dcc28a94c81a87b82e0e7c74db7f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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"), ['-n']);
echo "nok\n";
?>
--EXPECT--
ok
|