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