]>
Commit | Line | Data |
---|---|---|
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 | } |