dmitry Tue Dec 19 09:17:04 2006 UTC
Modified files: (Branch: PHP_5_2)
/php-src NEWS
/php-src/sapi/cgi fastcgi.c
Log:
Fixed bug #39869 (safe_read does not initialize errno). (michiel at boland
dot org)
http://cvs.php.net/viewvc.cgi/php-src/NEWS?r1=1.2027.2.547.2.441&r2=1.2027.2.547.2.442&diff_format=u
Index: php-src/NEWS
diff -u php-src/NEWS:1.2027.2.547.2.441 php-src/NEWS:1.2027.2.547.2.442
--- php-src/NEWS:1.2027.2.547.2.441 Tue Dec 19 08:58:58 2006
+++ php-src/NEWS Tue Dec 19 09:17:04 2006
@@ -8,6 +8,8 @@
. 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
http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/fastcgi.c?r1=1.4.2.13.2.12&r2=1.4.2.13.2.13&diff_format=u
Index: php-src/sapi/cgi/fastcgi.c
diff -u php-src/sapi/cgi/fastcgi.c:1.4.2.13.2.12
php-src/sapi/cgi/fastcgi.c:1.4.2.13.2.13
--- php-src/sapi/cgi/fastcgi.c:1.4.2.13.2.12 Tue Dec 5 08:55:15 2006
+++ php-src/sapi/cgi/fastcgi.c Tue Dec 19 09:17:04 2006
@@ -16,7 +16,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: fastcgi.c,v 1.4.2.13.2.12 2006/12/05 08:55:15 dmitry Exp $ */
+/* $Id: fastcgi.c,v 1.4.2.13.2.13 2006/12/19 09:17:04 dmitry Exp $ */
#include "php.h"
#include "fastcgi.h"
@@ -347,6 +347,7 @@
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 @@
size_t n = 0;
do {
+ errno = 0;
ret = read(req->fd, ((char*)buf)+n, count-n);
if (ret > 0) {
n += ret;
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php