httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dean Gaudet <dgau...@arctic.org>
Subject Re: cvs commit: apache-1.3/src/modules/standard mod_autoindex.c mod_include.c
Date Thu, 13 May 1999 19:28:57 GMT


On Thu, 13 May 1999, Raymond S Brand wrote:

> As far as I can tell it's perfectly safe. The original pool that the sub_req
> is in has been ap_pool_join()ed to the parent_req pool; it is also a sub pool
> of the parent pool. The making of the (empty) sub pool here is, as the comment
> says, to allow the sub_req to safely destroyed. The code that destroys reqs
> does no other work than to call ap_destroy_pool() so this should be safe.

ap_pool_join is an advisory debugging tool -- alloc.c does nothing to
ensure that you preserve the lifetimes appropriately. 

Try two #includes within one .shtml -- set variable foo=bar in the first
and set variable bleh=whatever in the second.  Do #printenvs in between. 
Watch for garbage. 

Dean


Mime
View raw message