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