Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.112
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
src /
php-7.4.33 /
ext /
pcntl /
tests /
Delete
Unzip
Name
Size
Permission
Date
Action
001.phpt
1.83
KB
-rw-rw-r--
2022-10-31 11:36
002.phpt
2.94
KB
-rw-rw-r--
2022-10-31 11:36
003.phpt
980
B
-rw-rw-r--
2022-10-31 11:36
async_signals.phpt
639
B
-rw-rw-r--
2022-10-31 11:36
bug47566.phpt
348
B
-rw-rw-r--
2022-10-31 11:36
bug72154.phpt
349
B
-rw-rw-r--
2022-10-31 11:36
bug73783.phpt
532
B
-rw-rw-r--
2022-10-31 11:36
pcntl_alarm.phpt
519
B
-rw-rw-r--
2022-10-31 11:36
pcntl_exec.phpt
324
B
-rw-rw-r--
2022-10-31 11:36
pcntl_exec_2.phpt
513
B
-rw-rw-r--
2022-10-31 11:36
pcntl_exec_3.phpt
412
B
-rw-rw-r--
2022-10-31 11:36
pcntl_fork_basic.phpt
756
B
-rw-rw-r--
2022-10-31 11:36
pcntl_fork_variation.phpt
1.07
KB
-rw-rw-r--
2022-10-31 11:36
pcntl_get_last_error.phpt
287
B
-rw-rw-r--
2022-10-31 11:36
pcntl_getpriority_basic.phpt
407
B
-rw-rw-r--
2022-10-31 11:36
pcntl_realtime_signal.phpt
590
B
-rw-rw-r--
2022-10-31 11:36
pcntl_setpriority_basic.phpt
559
B
-rw-rw-r--
2022-10-31 11:36
pcntl_signal.phpt
1.12
KB
-rw-rw-r--
2022-10-31 11:36
pcntl_signal_dispatch.phpt
716
B
-rw-rw-r--
2022-10-31 11:36
pcntl_signal_get_handler.phpt
655
B
-rw-rw-r--
2022-10-31 11:36
pcntl_unshare_01.phpt
630
B
-rw-rw-r--
2022-10-31 11:36
pcntl_unshare_02.phpt
960
B
-rw-rw-r--
2022-10-31 11:36
pcntl_unshare_03.phpt
816
B
-rw-rw-r--
2022-10-31 11:36
pcntl_wait.phpt
1.5
KB
-rw-rw-r--
2022-10-31 11:36
pcntl_wait_rusage1.phpt
1006
B
-rw-rw-r--
2022-10-31 11:36
pcntl_waitpid_rusage1.phpt
1.02
KB
-rw-rw-r--
2022-10-31 11:36
signal_closure_handler.phpt
614
B
-rw-rw-r--
2022-10-31 11:36
Save
Rename
--TEST-- Test function pcntl_fork() by testing the process isolation in the forking hierarchy father -> son -> grandson where father can not knows his grandson --CREDITS-- Marco Fabbri mrfabbri@gmail.com Francesco Fullone ff@ideato.it #PHPTestFest Cesena Italia on 2009-06-20 --SKIPIF-- <?php if (!extension_loaded('pcntl')) die('skip pcntl extension not available'); elseif (!extension_loaded('posix')) die('skip posix extension not available'); ?> --FILE-- <?php echo "*** Testing the process isolations between a process and its forks ***\n"; $pid = pcntl_fork(); if ($pid > 0) { pcntl_wait($status); echo "father is $pid\n"; if (!isset($pid2)) { echo "father ($pid) doesn't know its grandsons\n"; } } else { echo "son ($pid)\n"; $pid2 = pcntl_fork(); if ($pid2 > 0) { pcntl_wait($status2); echo "son is father of $pid2\n"; } else { echo "grandson ($pid2)\n"; } } ?> --EXPECTF-- *** Testing the process isolations between a process and its forks *** son (0) grandson (0) son is father of %d father is %d father (%d) doesn't know its grandsons