From: Jeff Trawick Date: Mon, 14 Mar 2011 20:58:32 +0000 (+0000) Subject: add more module upgrade hints X-Git-Tag: 2.3.12~234 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4459e7079294d4188e5cda774c7573ad5593e0c2;p=thirdparty%2Fapache%2Fhttpd.git add more module upgrade hints change some existing text to be more correct+readable git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1081559 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/developer/new_api_2_4.xml b/docs/manual/developer/new_api_2_4.xml index 15d1fd6c240..ece7c39f405 100644 --- a/docs/manual/developer/new_api_2_4.xml +++ b/docs/manual/developer/new_api_2_4.xml @@ -297,17 +297,32 @@ eliminating that mechanism and relying on the use of different APLOG_TRACEn levels. If expensive trace processing needs to be bypassed depending on the - configured log level, use - the APLOGtracen - and APLOGrtracen macros. + configured log level, use the APLOGtracen + and APLOGrtracen macros to first check + if tracing is enabled.

+

Modules sometimes add process id and/or thread id to their log + messages. These ids are now logged by default, so it may not + be necessary for the module to log them explicitly. (Users may + remove them from the error log format, but they can be + instructed to add it back if necessary for problem diagnosis.)

- If your module uses these APIs... + If your module uses these existing APIs...
+
ap_default_type()
+
This is no longer available; Content-Type must be configured + explicitly or added by the application.
+ +
ap_get_server_name()
+
If the returned server name is used in a URL, + use ap_get_server_name_for_url() instead. This new + function handles the odd case where the server name is an IPv6 + literal address.
+
ap_get_server_version()
For logging purposes, where detailed information is appropriate, use ap_get_server_description(). @@ -369,6 +384,8 @@ 0/APR_SUCCESS if there is no such error information, or a valid apr_status_t value otherwise.
+
unixd_config
+
This has been renamed to ap_unixd_config.
@@ -376,19 +393,41 @@ If your module interfaces with this feature...
suEXEC
-
Optional: ap_unixd_config.suexec_enabled is - still provided, but new - field suexec_disabled_reason provides an - explanation if the feature is not available.
+
Optional: If your module logs an error + when ap_unixd_config.suexec_enabled is 0, + also log the value of the new + field suexec_disabled_reason, which contains an + explanation of why it is not available.
Extended status data in the scoreboard
-
Instead of requiring mod_status and ExtendedStatus - On, just set ap_extended_status - to 1 in a pre-config hook.
+
In previous releases, ExtendedStatus had to be + set to On, which in turn required that + mod_status was loaded. In 2.4, just + set ap_extended_status to 1 in a + pre-config hook and the extended status data will be + available.
+
+ Does your module... +
Parse query args
+
Consider if ap_args_to_table() would be + helpful.
+ +
Parse form data...
+
Use ap_parse_form_data().
+ +
Check for request header fields Content-Length + and Transfer-Encoding to see if a body was + specified
+
Use ap_request_has_body().
+ +
Implement cleanups which clear pointer variables
+
Use ap_pool_cleanup_set_null().
+
+