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 (getenv('SKIP_ASAN')) die('skip Timeouts under ASAN'); 10?> 11--FILE-- 12<?php 13$pid = pcntl_fork(); 14if ($pid == -1) die("pcntl_fork failed"); 15if ($pid != 0) { 16 try { 17 pcntl_setns($pid, 0); 18 } catch (\ValueError $e) { 19 echo $e->getMessage(); 20 } 21} 22?> 23--EXPECTF-- 24pcntl_setns(): Argument #2 ($nstype) is an invalid nstype (%d) 25