xref: /PHP-8.0/ext/pcntl/tests/pcntl_exec_3.phpt (revision 852485d8)
1--TEST--
2pcntl_exec() 3
3--SKIPIF--
4<?php if (!extension_loaded("pcntl")) print "skip"; ?>
5--FILE--
6<?php
7$file = tempnam(sys_get_temp_dir(),"php");
8var_dump(pcntl_exec($file, array("foo","bar"), array("foo" => "bar")));
9unlink($file);
10?>
11--EXPECTF--
12Warning: pcntl_exec(): Error has occurred: (errno %d) %s
13bool(false)
14