Diff'ed against the stable 4.2.0 source package. Adds the same behavior as the CGI and ISAPI modules with regard to PATH_INFO and PATH_TRANSLATED variables to the Apache 2 filter interface. If the user does not specifically set the AcceptPathInfo configuration variable to "off", the patch passes the accepted state to the core module who makes them available to the PHP output filter.
As the default PHP content handler is no longer among us, it would probably be a good idea to put all this in the fixup phase. Still for now I think it gets the job done. D
--- sapi/apache2filter/sapi_apache2.c.orig Thu Apr 18 18:34:49 2002 +++ sapi/apache2filter/sapi_apache2.c Sat May 11 03:27:07 2002 @@ -477,6 +477,13 @@ strcmp(r->content_type, "application/x-httpd-php") == 0) { php_add_filter(r, r->output_filters); php_add_filter(r, r->input_filters); + + /* Accept PATH_INFO and PATH_TRANSLATED if not specifically + * set by the user. (mimic the CGI module behavior) */ + + if ((r->used_path_info == AP_REQ_DEFAULT_PATH_INFO) && + r->path_info && *r->path_info) + r->used_path_info = AP_REQ_ACCEPT_PATH_INFO; } }
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, visit: http://www.php.net/unsub.php