1--TEST-- 2Test function pcntl_rfork() with RFCFDG and RFFDG flags. 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 "\n*** Test with RFFDG and RFCFDG flags ***\n"; 13$pid = pcntl_rfork(RFFDG); 14if ($pid > 0) { 15 pcntl_wait($status); 16 var_dump($pid); 17} else { 18 var_dump($pid); 19 exit; 20} 21 22$pid = pcntl_rfork(RFCFDG); 23if ($pid > 0) { 24 pcntl_wait($status); 25 var_dump($pid); 26} 27?> 28--EXPECTF-- 29*** Test with RFFDG and RFCFDG flags *** 30int(0) 31int(%d) 32int(%d) 33