1--TEST--
2posix_isatty(): errors for invalid file descriptors
3--EXTENSIONS--
4posix
5--SKIPIF--
6<?php
7if (PHP_INT_SIZE != 8) die('skip C int is same size as zend_long');
8?>
9--FILE--
10<?php
11
12$values = [
13    -1,
14    2**50+1,
15];
16
17foreach ($values as $value) {
18    var_dump(posix_isatty($value));
19}
20?>
21--EXPECT--
22bool(false)
23bool(false)
24