1--TEST-- 2posix_setrlimit(): Basic tests 3--SKIPIF-- 4<?php 5if (!extension_loaded('posix')) die('skip - POSIX extension not loaded'); 6if (!function_exists('posix_setrlimit')) die('skip posix_setrlimit() not found'); 7?> 8--FILE-- 9<?php 10 11var_dump(posix_setrlimit(POSIX_RLIMIT_NOFILE, 128, 128)); 12var_dump(posix_setrlimit(POSIX_RLIMIT_NOFILE, 129, 128)); 13 14?> 15--EXPECTF-- 16bool(true) 17bool(false) 18 19