Annotation of embedaddon/php/ext/pcntl/tests/pcntl_exec_3.phpt, revision 1.1

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: 
        !            16: Warning: pcntl_exec(): Error has occured: (errno %d) %s
        !            17: bool(false)

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