summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSascha Schumann <sas@php.net>2002-05-05 02:07:16 +0000
committerSascha Schumann <sas@php.net>2002-05-05 02:07:16 +0000
commitc8f884fac859b44c8678af4b421ad30f501d644e (patch)
treeb52b32b5a5d3ee9c0a87d716583c8277a50982f5
parente2de181cab36cbc8fb7875026bcb8aec86e0b9a2 (diff)
downloadphp-git-c8f884fac859b44c8678af4b421ad30f501d644e.tar.gz
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.
-rw-r--r--ext/standard/url_scanner_ex.re6
1 files 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;
}