summaryrefslogtreecommitdiff
path: root/ext/posix/tests/posix_setrlimit.phpt
blob: 32124ca432cf9a184f47ee4c5a64ce73d445ebca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
--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)