]> TLD Linux GIT Repositories - packages/php.git/blob - php-fcgi-error_log-no-newlines.patch
- updated for 5.5.23
[packages/php.git] / php-fcgi-error_log-no-newlines.patch
1 --- ./sapi/cgi/cgi_main.c       2015-04-07 17:56:50.268753904 +0000
2 +++ ./sapi/cgi/cgi_main.c       2015-04-07 17:54:57.000000000 +0000
3 @@ -734,12 +734,7 @@
4                 request = (fcgi_request*) SG(server_context);
5                 if (request) {
6                         int ret, len = strlen(message);
7 -                       char *buf = malloc(len+2);
8 -
9 -                       memcpy(buf, message, len);
10 -                       memcpy(buf + len, "\n", sizeof("\n"));
11 -                       ret = fcgi_write(request, FCGI_STDERR, buf, len + 1);
12 -                       free(buf);
13 +                       fcgi_write(request, FCGI_STDERR, message, len);
14                         if (ret < 0) {
15                                 php_handle_aborted_connection();
16                         }