]> TLD Linux GIT Repositories - packages/php.git/blobdiff - php-fcgi-error_log-no-newlines.patch
- updated to 5.6.40
[packages/php.git] / php-fcgi-error_log-no-newlines.patch
index 321452f97514890793464c640e7697a9b99d0646..cedf82c5ea1d9fa23880d86c550babbc97d6e935 100644 (file)
@@ -1,14 +1,16 @@
---- php-5.6.6/sapi/cgi/cgi_main.c.orig 2015-02-24 12:35:21.097436930 +0100
-+++ php-5.6.6/sapi/cgi/cgi_main.c      2015-02-24 12:38:49.851431030 +0100
-@@ -739,10 +739,7 @@
+--- php-5.6.6/sapi/cgi/cgi_main.c~     2015-02-27 18:09:34.000000000 +0200
++++ php-5.6.6/sapi/cgi/cgi_main.c      2015-02-27 18:11:26.296171361 +0200
+@@ -737,12 +737,8 @@
+               request = (fcgi_request*) SG(server_context);
+               if (request) {
                        int ret, len = strlen(message);
-                       char *buf = malloc(len+2);
+-                      char *buf = malloc(len+2);
  
 -                      memcpy(buf, message, len);
 -                      memcpy(buf + len, "\n", sizeof("\n"));
 -                      ret = fcgi_write(request, FCGI_STDERR, buf, len + 1);
 -                      free(buf);
-+                      fcgi_write(request, FCGI_STDERR, message, len);
++                      ret = fcgi_write(request, FCGI_STDERR, message, len);
                        if (ret < 0) {
                                php_handle_aborted_connection();
                        }