mirror of
https://github.com/pmmp/PocketMine-MP.git
synced 2025-07-13 21:35:21 +00:00
CommandReader: Use stream_isatty() instead of posix_isatty() (new in 7.2)
This commit is contained in:
parent
f08537a1e0
commit
b75413e3c4
@ -96,7 +96,7 @@ class CommandReader extends Thread{
|
|||||||
* @return bool
|
* @return bool
|
||||||
*/
|
*/
|
||||||
private function isPipe($stream) : bool{
|
private function isPipe($stream) : bool{
|
||||||
return is_resource($stream) and ((function_exists("posix_isatty") and !posix_isatty($stream)) or ((fstat($stream)["mode"] & 0170000) === 0010000));
|
return is_resource($stream) and (!stream_isatty($stream) or ((fstat($stream)["mode"] & 0170000) === 0010000));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user