From c8f884fac859b44c8678af4b421ad30f501d644e Mon Sep 17 00:00:00 2001 From: Sascha Schumann Date: Sun, 5 May 2002 02:07:16 +0000 Subject: [PATCH] the output buffer is flushed during request shutdown before it reaches our rshutdown, so it is safe to delete the contents of the url rewriter variables here. --- ext/standard/url_scanner_ex.re | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ext/standard/url_scanner_ex.re b/ext/standard/url_scanner_ex.re index d17ef1259f..c95f90a95a 100644 --- a/ext/standard/url_scanner_ex.re +++ b/ext/standard/url_scanner_ex.re @@ -447,9 +447,6 @@ PHP_MSHUTDOWN_FUNCTION(url_scanner) PHP_RINIT_FUNCTION(url_scanner) { BG(url_adapt_state_ex).active = 0; - - smart_str_free(&BG(url_adapt_state_ex).form_app); - smart_str_free(&BG(url_adapt_state_ex).url_app); return SUCCESS; } @@ -461,5 +458,8 @@ PHP_RSHUTDOWN_FUNCTION(url_scanner) BG(url_adapt_state_ex).active = 0; } + smart_str_free(&BG(url_adapt_state_ex).form_app); + smart_str_free(&BG(url_adapt_state_ex).url_app); + return SUCCESS; } -- 2.50.1