PHP - Manual: Error codes
2024-12-22
On error ncurses functions return -1. Some functions return 0 on success. See the relevant pages in the documentation for actual return values.
官方地址:https://www.php.net/manual/en/ncurses.errconsts.php