From: Sascha Schumann Date: Sun, 5 May 2002 02:07:16 +0000 (+0000) Subject: the output buffer is flushed during request shutdown before it X-Git-Tag: php-4.3.0dev-ZendEngine2-Preview1~228 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c8f884fac859b44c8678af4b421ad30f501d644e;p=php 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. --- 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; }