]> granicus.if.org Git - php/commitdiff
MF4: fix double bailout in HEAD when output is attempted from shutdown
authorStanislav Malyshev <stas@php.net>
Wed, 20 Oct 2004 15:31:06 +0000 (15:31 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 20 Oct 2004 15:31:06 +0000 (15:31 +0000)
main/output.c

index 750506619690925780ad842c4aece1ddc5c86fd5..14303fd9f6005cb000fec67c79f03e434bbc40dd 100644 (file)
@@ -698,6 +698,9 @@ PHPAPI int php_ub_body_write(const char *str, uint str_length TSRMLS_DC)
        int result = 0;
 
        if (SG(request_info).headers_only) {
+               if(SG(headers_sent)) {
+                       return 0;
+               }
                php_header(TSRMLS_C);
                zend_bailout();
        }