X-Git-Url: https://git.tld-linux.org/?a=blobdiff_plain;f=php-fcgi-error_log-no-newlines.patch;h=cedf82c5ea1d9fa23880d86c550babbc97d6e935;hb=1e5eb3527b409c4e90745cec53296e3f7fcb26cf;hp=321452f97514890793464c640e7697a9b99d0646;hpb=a84fb7d2e9b9cdae9cb2d9e129019a05cb413adc;p=packages%2Fphp.git diff --git a/php-fcgi-error_log-no-newlines.patch b/php-fcgi-error_log-no-newlines.patch index 321452f..cedf82c 100644 --- a/php-fcgi-error_log-no-newlines.patch +++ b/php-fcgi-error_log-no-newlines.patch @@ -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(); }