]> granicus.if.org Git - php/commitdiff
the output buffer is flushed during request shutdown before it
authorSascha Schumann <sas@php.net>
Sun, 5 May 2002 02:07:16 +0000 (02:07 +0000)
committerSascha Schumann <sas@php.net>
Sun, 5 May 2002 02:07:16 +0000 (02:07 +0000)
reaches our rshutdown, so it is safe to delete the contents of
the url rewriter variables here.

ext/standard/url_scanner_ex.re

index d17ef1259f0fe8f37fe8de009cf38539109bfb34..c95f90a95ada5da493e0b566afa67ad2da99cbfc 100644 (file)
@@ -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;
 }