|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull Requests |
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 06:00:02 2025 UTC |
Description: ------------ We have a (really lots) shared extension that require access to the request_rec, but also need to run under either apache 1 or the apache 2 SAPI. Could we get SAPI function for access (both get and set) the request_rec data, such as: r->headers_in r->headers_out r->subprocess_env r->notes Reproduce code: --------------- Right now we do things like: request_rec *r = (request_rec *) SG(server_context); if (r != NULL) { const char *foo = ap_table_get(r->subprocess_env, "foo"); } this means we have to build a version of the extension for apache 1 and apache 2. Expected result: ---------------- I would like to do something like this (where XXXX is some new function for r->subprocess_env access): const char *foo = sapi_XXXX_get("foo"); or sapi_XXXX_set("foo", "bar"); This way we could build one sapi module for apache 1 and one for apache 2, but a single shared extension that would work with either.