mirror of
https://github.com/php/php-src.git
synced 2025-08-15 21:48:51 +02:00
Merge branch 'PHP-8.3' into PHP-8.4
This commit is contained in:
commit
4ad12bdd2d
2 changed files with 17 additions and 1 deletions
|
@ -160,7 +160,7 @@ PHPAPI int php_poll2(php_pollfd *ufds, unsigned int nfds, int timeout);
|
|||
/* timeval-to-timeout (for poll(2)) */
|
||||
static inline int php_tvtoto(struct timeval *timeouttv)
|
||||
{
|
||||
if (timeouttv) {
|
||||
if (timeouttv && timeouttv->tv_sec >= 0 && timeouttv->tv_sec <= ((INT_MAX - 1000) / 1000)) {
|
||||
return (timeouttv->tv_sec * 1000) + (timeouttv->tv_usec / 1000);
|
||||
}
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue