mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
Fixed bug #39869 (safe_read does not initialize errno). (michiel at boland dot org)
This commit is contained in:
parent
03312cc0d9
commit
868ac7d3a3
2
NEWS
2
NEWS
@ -8,6 +8,8 @@ PHP NEWS
|
||||
. cookies
|
||||
. canary protection (debug build only)
|
||||
. random generation of cookies and canaries
|
||||
- Fixed bug #39869 (safe_read does not initialize errno).
|
||||
(michiel at boland dot org, Dmitry)
|
||||
- Fixed bug #39850 (SplFileObject throws contradictory/wrong error messages
|
||||
when trying to open "php://wrong"). (Tony)
|
||||
- Fixed bug #39832 (SOAP Server: parameter not matching the WSDL specified type
|
||||
|
@ -347,6 +347,7 @@ static inline ssize_t safe_write(fcgi_request *req, const void *buf, size_t coun
|
||||
size_t n = 0;
|
||||
|
||||
do {
|
||||
errno = 0;
|
||||
ret = write(req->fd, ((char*)buf)+n, count-n);
|
||||
if (ret > 0) {
|
||||
n += ret;
|
||||
@ -363,6 +364,7 @@ static inline ssize_t safe_read(fcgi_request *req, const void *buf, size_t count
|
||||
size_t n = 0;
|
||||
|
||||
do {
|
||||
errno = 0;
|
||||
ret = read(req->fd, ((char*)buf)+n, count-n);
|
||||
if (ret > 0) {
|
||||
n += ret;
|
||||
|
Loading…
Reference in New Issue
Block a user