mirror of
https://github.com/php/php-src.git
synced 2026-04-21 23:18:13 +02:00
ded3d984c6
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
19 lines
388 B
PHP
19 lines
388 B
PHP
--TEST--
|
|
posix_setrlimit(): Basic tests
|
|
--SKIPIF--
|
|
<?php
|
|
if (!extension_loaded('posix')) die('skip - POSIX extension not loaded');
|
|
if (!function_exists('posix_setrlimit')) die('skip posix_setrlimit() not found');
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
var_dump(posix_setrlimit(POSIX_RLIMIT_NOFILE, 128, 128));
|
|
var_dump(posix_setrlimit(POSIX_RLIMIT_NOFILE, 129, 128));
|
|
|
|
?>
|
|
--EXPECT--
|
|
bool(true)
|
|
bool(false)
|
|
|