File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 77<?php
88if (!function_exists ("pcntl_setns " )) die ("skip pcntl_setns is not available " );
99if (getenv ('SKIP_ASAN ' )) die ('skip Timeouts under ASAN ' );
10+ if (@pcntl_setns (getmypid (), 0 ) === false && pcntl_get_last_error () == PCNTL_EPERM ) {
11+ die ("skip Insufficient privileges to use pcntl_setns() " );
12+ }
1013?>
1114--FILE--
1215<?php
Original file line number Diff line number Diff line change 66--SKIPIF--
77<?php
88if (!function_exists ("pcntl_setns " )) die ("skip pcntl_setns is not available " );
9- if (posix_getuid () !== 0 ) die ('skip Test needs root user ' );
109if (getenv ('SKIP_ASAN ' )) die ('skip Timeouts under ASAN ' );
10+ if (@pcntl_setns (getmypid (), 0 ) === false && pcntl_get_last_error () == PCNTL_EPERM ) {
11+ die ("skip Insufficient privileges to use pcntl_setns() " );
12+ }
1113?>
1214--FILE--
1315<?php
You can’t perform that action at this time.
0 commit comments