summaryrefslogtreecommitdiff
path: root/ext/pcntl/tests/pcntl_exec_3.phpt
blob: 5349381d92b89fa5a42b96f15384ea89de80f933 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--TEST--
pcntl_exec() 3
--SKIPIF--
<?php if (!extension_loaded("pcntl")) print "skip"; ?>
--FILE--
<?php
var_dump(pcntl_exec());
$file = tempnam(sys_get_temp_dir(),"php");
var_dump(pcntl_exec($file, array("foo","bar"), array("foo" => "bar")));
unlink($file);
?>
--EXPECTF--
Warning: pcntl_exec() expects at least 1 parameter, 0 given %s
NULL

Warning: pcntl_exec(): Error has occurred: (errno %d) %s
bool(false)