1--TEST--
2pcntl_setns()
3--EXTENSIONS--
4pcntl
5posix
6--SKIPIF--
7<?php
8if (!function_exists("pcntl_setns")) die("skip pcntl_setns is not available");
9if (posix_getuid() !== 0) die('skip Test needs root user');
10if (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN');
11?>
12--FILE--
13<?php
14$pid = pcntl_fork();
15if ($pid == -1) die("pcntl_fork failed");
16if ($pid != 0) {
17	var_dump(pcntl_setns($pid, CLONE_NEWPID));
18}
19?>
20--EXPECT--
21bool(true)
22