PHP  
 PHP_HEAD
downloads | QA | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
 

Test Failure Report for ext/pcntl/tests/pcntl_unshare_02.phpt ('pcntl_unshare() with CLONE_NEWPID')

Script

1: <?php
2:
3:
if(posix_getuid() !== 0) {
4:     
pcntl_unshare(CLONE_NEWUSER);
5: }
6:
7:
var_dump(getmypid());
8:
pcntl_unshare(CLONE_NEWPID);
9: if(!
pcntl_fork()) {
10:     
var_dump(getmypid());
11:     exit();
12: }
13:

Expected

int(%d)
int(1)

Output

Warning: pcntl_unshare(): Error 22: Invalid flag specified in /var/php_gcov/PHP_HEAD/ext/pcntl/tests/pcntl_unshare_02.php on line 4
int(27979)

Warning: pcntl_unshare(): Error 1: No privilege to use these flags in /var/php_gcov/PHP_HEAD/ext/pcntl/tests/pcntl_unshare_02.php on line 8
int(27983)

Diff

001+ Warning: pcntl_unshare(): Error 22: Invalid flag specified in /var/php_gcov/PHP_HEAD/ext/pcntl/tests/pcntl_unshare_02.php on line 4
002- int(1)
003+ 
004+ Warning: pcntl_unshare(): Error 1: No privilege to use these flags in /var/php_gcov/PHP_HEAD/ext/pcntl/tests/pcntl_unshare_02.php on line 8
005+ int(27983)

 

Generated at Mon, 06 May 2019 17:58:35 +0000 (942 days ago)

Copyright © 2005-2021 The PHP Group
All rights reserved.