mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
Merge branch 'PHP-8.0' into PHP-8.1
* PHP-8.0: [ci skip] NEWS Fix compilation warning Fix crash when memory limit is exceeded during generator initialization
This commit is contained in:
@@ -214,11 +214,13 @@ PHPAPI void _php_emit_fd_setsize_warning(int max_fd);
|
||||
static inline bool _php_check_fd_setsize(php_socket_t *max_fd, int setsize)
|
||||
{
|
||||
#ifdef PHP_WIN32
|
||||
(void)(max_fd); // Unused
|
||||
if (setsize + 1 >= FD_SETSIZE) {
|
||||
_php_emit_fd_setsize_warning(setsize);
|
||||
return false;
|
||||
}
|
||||
#else
|
||||
(void)(setsize); // Unused
|
||||
if (*max_fd >= FD_SETSIZE) {
|
||||
_php_emit_fd_setsize_warning(*max_fd);
|
||||
*max_fd = FD_SETSIZE - 1;
|
||||
|
||||
Reference in New Issue
Block a user