]> granicus.if.org Git - php/commitdiff
Init output_start_* to avoid "output started at ZZZZZ" messages
authorStanislav Malyshev <stas@php.net>
Wed, 24 Apr 2002 16:53:07 +0000 (16:53 +0000)
committerStanislav Malyshev <stas@php.net>
Wed, 24 Apr 2002 16:53:07 +0000 (16:53 +0000)
(which may result when output started while zend is neither compiling nor
executing - e.g., when file upload fails).

main/output.c

index d510c11b67e3556197435e56ee1979e5c6f6543e..fcc70e6954cb22352458fe6ebc197e51f0af1d0a 100644 (file)
@@ -77,6 +77,8 @@ PHPAPI void php_output_activate(TSRMLS_D)
        OG(ob_nesting_level) = 0;
        OG(ob_lock) = 0;
        OG(disable_output) = 0;
+       OG(output_start_filename) = NULL;
+       OG(output_start_lineno) = 0;
 }