[php-src] master: Merge branch 'PHP-8.3'

From: Date: Wed, 01 May 2024 13:00:20 +0000
Subject: [php-src] master: Merge branch 'PHP-8.3'
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-128288@lists.php.net to get a copy of this message
Author: David Carlier (devnexen) Date: 2024-05-01T14:00:03+01:00 Commit: https://github.com/php/php-src/commit/0a134e5d85aa073822b65ac189598446e2a60b0e Raw diff: https://github.com/php/php-src/commit/0a134e5d85aa073822b65ac189598446e2a60b0e.diff Merge branch 'PHP-8.3' Changed paths: M main/fastcgi.c M sapi/cgi/cgi_main.c Diff: diff --git a/main/fastcgi.c b/main/fastcgi.c index 47b86b468588d..f9aa454f2520d 100644 --- a/main/fastcgi.c +++ b/main/fastcgi.c @@ -958,9 +958,9 @@ static inline ssize_t safe_read(fcgi_request *req, const void *buf, size_t count tmp = count - n; if (!req->tcp) { - unsigned int in_len = tmp > UINT_MAX ? UINT_MAX : (unsigned int)tmp; + unsigned int in_len = tmp > INT_MAX ? INT_MAX : (unsigned int)tmp; - ret = read(req->fd, ((char*)buf)+n, in_len); + ret = _read(req->fd, ((char*)buf)+n, in_len); } else { int in_len = tmp > INT_MAX ? INT_MAX : (int)tmp; diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index d5c4888211135..3759f24d45df8 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -486,9 +486,9 @@ static size_t sapi_cgi_read_post(char *buffer, size_t count_bytes) while (read_bytes < count_bytes) { #ifdef PHP_WIN32 size_t diff = count_bytes - read_bytes; - unsigned int to_read = (diff > UINT_MAX) ? UINT_MAX : (unsigned int)diff; + unsigned int to_read = (diff > INT_MAX) ? INT_MAX : (unsigned int)diff; - tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, to_read); + tmp_read_bytes = _read(STDIN_FILENO, buffer + read_bytes, to_read); #else tmp_read_bytes = read(STDIN_FILENO, buffer + read_bytes, count_bytes - read_bytes); #endif

« previous php.cvs (#128288) next »