File:  [ELWIX - Embedded LightWeight unIX -] / embedaddon / php / ext / pcntl / tests / pcntl_exec_3.phpt
Revision 1.1.1.2 (vendor branch): download - view: text, annotated - select for diffs - revision graph
Mon Jul 22 01:31:57 2013 UTC (11 years, 1 month ago) by misho
Branches: php, MAIN
CVS tags: v5_4_29p0, v5_4_29, v5_4_20p0, v5_4_20, v5_4_17, HEAD
5.4.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)

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>