php-src/sapi
Aaron Bannert 27a5b380cf PHP filters and Apache 2 aren't quite a perfect match yet, so we have
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.
2002-04-11 19:25:08 +00:00
..
aolserver Please welcome the new build system. 2002-03-07 14:20:02 +00:00
apache Fix output directory. 2002-04-06 15:37:08 +00:00
apache2filter PHP filters and Apache 2 aren't quite a perfect match yet, so we have 2002-04-11 19:25:08 +00:00
caudium Please welcome the new build system. 2002-03-07 14:20:02 +00:00
cgi fix quoting 2002-04-02 16:45:10 +00:00
cli WS fix 2002-03-27 22:49:21 +00:00
fastcgi Fix output directory. 2002-04-06 15:45:00 +00:00
fhttpd Update headers. 2001-12-11 15:32:16 +00:00
isapi - Fix whitespace (guys, please try to stick with the php4 tree style as far 2002-03-19 19:15:40 +00:00
nsapi Please welcome the new build system. 2002-03-07 14:20:02 +00:00
phttpd Please welcome the new build system. 2002-03-07 14:20:02 +00:00
pi3web Please welcome the new build system. 2002-03-07 14:20:02 +00:00
roxen Please welcome the new build system. 2002-03-07 14:20:02 +00:00
servlet Please welcome the new build system. 2002-03-07 14:20:02 +00:00
thttpd Add a note regarding which version we support 2002-03-11 12:28:16 +00:00
tux Please welcome the new build system. 2002-03-07 14:20:02 +00:00
webjames Backslashes caused the build to fail with autoconf 2.52 2002-03-24 22:57:00 +00:00