]> git.pld-linux.org Git - packages/php.git/blame_incremental - php-fcgi-error_log-no-newlines.patch
The xmlrpc extension is available as php-pecl-xmlrpc
[packages/php.git] / php-fcgi-error_log-no-newlines.patch
... / ...
CommitLineData
1--- php-7.0/sapi/cgi/cgi_main.c~ 2015-05-21 23:12:23.000000000 +0300
2+++ php-7.0/sapi/cgi/cgi_main.c 2015-05-21 23:13:24.947976867 +0300
3@@ -701,12 +701,8 @@
4 request = (fcgi_request*) SG(server_context);
5 if (request) {
6 int ret, len = (int)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, (int)(len + 1));
12- free(buf);
13+ ret = fcgi_write(request, FCGI_STDERR, message, len);
14 if (ret < 0) {
15 php_handle_aborted_connection();
16 }
This page took 0.027348 seconds and 4 git commands to generate.