xref: /PHP-5.5/ext/pcntl/tests/pcntl_exec_3.phpt (revision 896ac689)
1--TEST--
2pcntl_exec() 3
3--SKIPIF--
4<?php if (!extension_loaded("pcntl")) print "skip"; ?>
5--FILE--
6<?php
7var_dump(pcntl_exec());
8$file = tempnam(sys_get_temp_dir(),"php");
9var_dump(pcntl_exec($file, array("foo","bar"), array("foo" => "bar")));
10unlink($file);
11?>
12--EXPECTF--
13Warning: pcntl_exec() expects at least 1 parameter, 0 given %s
14NULL
15
16Warning: pcntl_exec(): Error has occurred: (errno %d) %s
17bool(false)
18