]> git.pld-linux.org Git - packages/php.git/blame - php-fcgi-error_log-no-newlines.patch
- release 9 (by relup.sh)
[packages/php.git] / php-fcgi-error_log-no-newlines.patch
CommitLineData
55766199
ER
1--- php-5.6.6/sapi/cgi/cgi_main.c~ 2015-02-27 18:09:34.000000000 +0200
2+++ php-5.6.6/sapi/cgi/cgi_main.c 2015-02-27 18:11:26.296171361 +0200
3@@ -737,12 +737,8 @@
c0240cb1 4 request = (fcgi_request*) SG(server_context);
55766199
ER
5 if (request) {
6 int ret, len = strlen(message);
c0240cb1 7- char *buf = malloc(len+2);
55766199 8
c0240cb1 9- memcpy(buf, message, len);
10- memcpy(buf + len, "\n", sizeof("\n"));
55766199 11- ret = fcgi_write(request, FCGI_STDERR, buf, len + 1);
c0240cb1 12- free(buf);
55766199
ER
13+ ret = fcgi_write(request, FCGI_STDERR, message, len);
14 if (ret < 0) {
15 php_handle_aborted_connection();
16 }
This page took 0.042528 seconds and 4 git commands to generate.