1--TEST--
2Test function pcntl_rfork() with no wait flag.
3--EXTENSIONS--
4pcntl
5posix
6--SKIPIF--
7<?php
8	if (!function_exists('pcntl_rfork')) die('skip pcntl_rfork unavailable');
9?>
10--FILE--
11<?php
12echo "*** Test by with child not reporting to the parent ***\n";
13
14$pid = pcntl_rfork(RFNOWAIT|RFTSIGZMB,SIGUSR1);
15if ($pid > 0) {
16	var_dump($pid);
17} else {
18	var_dump($pid);
19  sleep(2); // as the child does not wait so we see its "pid"
20}
21?>
22--EXPECTF--
23*** Test by with child not reporting to the parent ***
24int(%d)
25int(0)
26