From 314fb18f15ceb32589e40224257faeac6c8768b2 Mon Sep 17 00:00:00 2001 From: Joe Orton Date: Thu, 20 Jun 2019 07:27:06 +0000 Subject: [PATCH] Clarify pool lifetime constraints when modifying ap_server_config_defines. PR: 63516 git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1861672 13f79535-47bb-0310-9956-ffa450edef68 --- include/http_main.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/include/http_main.h b/include/http_main.h index fa1ce85216..65f7eb6b68 100644 --- a/include/http_main.h +++ b/include/http_main.h @@ -66,8 +66,10 @@ AP_DECLARE_DATA extern apr_array_header_t *ap_server_pre_read_config; /** An array of all -c directives. These are processed after the server's * config file */ AP_DECLARE_DATA extern apr_array_header_t *ap_server_post_read_config; -/** An array of all -D defines on the command line. This allows people to - * effect the server based on command line options */ +/** An array of all -D defines on the command line. This allows users + * to effect the server based on command line options. A module + * which adds to this array must allocate the new element value from + * same pool as the array (->pool in the array header). */ AP_DECLARE_DATA extern apr_array_header_t *ap_server_config_defines; /** Available integer for using the -T switch */ AP_DECLARE_DATA extern int ap_document_root_check; -- 2.50.1