]> TLD Linux GIT Repositories - packages/php.git/blob - php-fcgi-error_log-no-newlines.patch
- PHP 5.6.6
[packages/php.git] / php-fcgi-error_log-no-newlines.patch
1 --- php-5.6.6/sapi/cgi/cgi_main.c.orig  2015-02-24 12:35:21.097436930 +0100
2 +++ php-5.6.6/sapi/cgi/cgi_main.c       2015-02-24 12:38:49.851431030 +0100
3 @@ -739,10 +739,7 @@
4                         int ret, len = strlen(message);
5                         char *buf = malloc(len+2);
6  
7 -                       memcpy(buf, message, len);
8 -                       memcpy(buf + len, "\n", sizeof("\n"));
9 -                       ret = fcgi_write(request, FCGI_STDERR, buf, len + 1);
10 -                       free(buf);
11 +                       fcgi_write(request, FCGI_STDERR, message, len);
12                         if (ret < 0) {
13                                 php_handle_aborted_connection();
14                         }