1
0
mirror of https://github.com/php/php-src.git synced 2026-04-28 10:43:30 +02:00
Files
archived-php-src/ext/pcntl/tests/pcntl_exec_3.phpt
T
2019-03-11 11:32:20 +01:00

14 lines
319 B
PHP

--TEST--
pcntl_exec() 3
--SKIPIF--
<?php if (!extension_loaded("pcntl")) print "skip"; ?>
--FILE--
<?php
$file = tempnam(sys_get_temp_dir(),"php");
var_dump(pcntl_exec($file, array("foo","bar"), array("foo" => "bar")));
unlink($file);
?>
--EXPECTF--
Warning: pcntl_exec(): Error has occurred: (errno %d) %s
bool(false)