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_03.phpt ('pcntl_unshare() with CLONE_NEWNET')

Script

1: <?php
2:
3:
if(posix_getuid() !== 0) {
4:     
pcntl_unshare(CLONE_NEWUSER);
5: }
6:
7:
var_dump(gethostbyname('php.net'));
8:
pcntl_unshare(CLONE_NEWNET);
9:
var_dump(gethostbyname('php.net'));
10:

Expected

string(%d) %s
string(7) "php.net"

Output

Warning: pcntl_unshare(): Error 22: Invalid flag specified in /var/php_gcov/PHP_HEAD/ext/pcntl/tests/pcntl_unshare_03.php on line 4
string(11) "185.85.0.29"

Warning: pcntl_unshare(): Error 1: No privilege to use these flags in /var/php_gcov/PHP_HEAD/ext/pcntl/tests/pcntl_unshare_03.php on line 8
string(11) "185.85.0.29"

Diff

001+ Warning: pcntl_unshare(): Error 22: Invalid flag specified in /var/php_gcov/PHP_HEAD/ext/pcntl/tests/pcntl_unshare_03.php on line 4
002- string(7) "php.net"
003+ 
004+ Warning: pcntl_unshare(): Error 1: No privilege to use these flags in /var/php_gcov/PHP_HEAD/ext/pcntl/tests/pcntl_unshare_03.php on line 8
005+ string(11) "185.85.0.29"

 

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

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