1
0
mirror of https://github.com/php/php-src.git synced 2026-03-24 00:02:20 +01:00
Files
archived-php-src/ext/pcntl/tests/pcntl_fork_basic.phpt
Nikita Popov 7485978339 Migrate SKIPIF -> EXTENSIONS (#7138)
This is an automated migration of most SKIPIF extension_loaded checks.
2021-06-11 11:57:42 +02:00

26 lines
616 B
PHP

--TEST--
Test function pcntl_fork() by calling it with its expected arguments
--CREDITS--
Marco Fabbri mrfabbri@gmail.com
Francesco Fullone ff@ideato.it
#PHPTestFest Cesena Italia on 2009-06-20
--EXTENSIONS--
pcntl
posix
--FILE--
<?php
echo "*** Test by calling method or function with its expected arguments, first print the child PID and the father ***\n";
$pid = pcntl_fork();
if ($pid > 0) {
pcntl_wait($status);
var_dump($pid);
} else {
var_dump($pid);
}
?>
--EXPECTF--
*** Test by calling method or function with its expected arguments, first print the child PID and the father ***
int(0)
int(%d)