1--TEST--
2Test function pcntl_fork() by calling it with its expected arguments
3--CREDITS--
4Marco Fabbri mrfabbri@gmail.com
5Francesco Fullone ff@ideato.it
6#PHPTestFest Cesena Italia on 2009-06-20
7--EXTENSIONS--
8pcntl
9posix
10--FILE--
11<?php
12echo "*** Test by calling method or function with its expected arguments, first print the child PID and the father ***\n";
13
14$pid = pcntl_fork();
15if ($pid > 0) {
16    pcntl_wait($status);
17    var_dump($pid);
18} else {
19    var_dump($pid);
20}
21?>
22--EXPECTF--
23*** Test by calling method or function with its expected arguments, first print the child PID and the father ***
24int(0)
25int(%d)
26