mirror of
https://github.com/php/php-src.git
synced 2024-10-20 16:02:44 +00:00
27a5b380cf
to do some trickery with the server_context to make sure it is always valid within the current thread. This patch makes sure the server_context is created in apache's post_read_request hook phase, and then registeres a cleanup that will NULL out the server context when the request goes out of scope. Then, inside the output filters, if the server_context is null we throw an error. Finally, instead of saving the output filter in the server_context, now we store the entire request_rec pointer in there. POST bodies appear to be working now, although they are very inefficient. The input filter is still just realloc()ing for whatever data comes down the input pipe, and then sending this to PHP. This means that we are doing some really nasty memory management on big POST bodies. For now this it allows for unlimited input bodies, which means that a big POST could potentially DoS a box by making it run out of memory. We might want to put a limit on here just in case, at least until we figure out how to consume input data more efficiently into php. |
||
---|---|---|
.. | ||
aolserver | ||
apache | ||
apache2filter | ||
caudium | ||
cgi | ||
cli | ||
fastcgi | ||
fhttpd | ||
isapi | ||
nsapi | ||
phttpd | ||
pi3web | ||
roxen | ||
servlet | ||
thttpd | ||
tux | ||
webjames |