]> granicus.if.org Git - php/commitdiff
Handle HEAD output handler flags
authorArnaud Le Blanc <lbarnaud@php.net>
Sat, 25 Apr 2009 21:07:07 +0000 (21:07 +0000)
committerArnaud Le Blanc <lbarnaud@php.net>
Sat, 25 Apr 2009 21:07:07 +0000 (21:07 +0000)
(fixes ext/standard/tests/general_functions/bug44394.phpt)

ext/standard/url_scanner_ex.re

index fe020d9154c294158125f00726ec4bd4fadc3218..95ebdc1df0bd62697db58981b55c5f5009db47f8 100644 (file)
@@ -431,7 +431,7 @@ static void php_url_scanner_output_handler(char *output, uint output_len, char *
        size_t len;
 
        if (BG(url_adapt_state_ex).url_app.len != 0) {
-               *handled_output = url_adapt_ext(output, output_len, &len, (zend_bool) (mode & (PHP_OUTPUT_HANDLER_END | PHP_OUTPUT_HANDLER_CONT) ? 1 : 0) TSRMLS_CC);
+               *handled_output = url_adapt_ext(output, output_len, &len, (zend_bool) (mode & (PHP_OUTPUT_HANDLER_END | PHP_OUTPUT_HANDLER_CONT | PHP_OUTPUT_HANDLER_FLUSH | PHP_OUTPUT_HANDLER_FINAL) ? 1 : 0) TSRMLS_CC);
                if (sizeof(uint) < sizeof(size_t)) {
                        if (len > UINT_MAX)
                                len = UINT_MAX;