]> granicus.if.org Git - php/commitdiff
Output buffering was being enabled all the time - fixed
authorZeev Suraski <zeev@php.net>
Wed, 29 Nov 2000 01:02:27 +0000 (01:02 +0000)
committerZeev Suraski <zeev@php.net>
Wed, 29 Nov 2000 01:02:27 +0000 (01:02 +0000)
main/main.c

index 4d92d309d21c267a567e6c5a50538ff4eb9be309..458b2e556d97f3c46c10864077546c8c104222a2 100644 (file)
@@ -625,7 +625,7 @@ int php_request_startup(CLS_D ELS_DC PLS_DC SLS_DC)
                sapi_add_header(SAPI_PHP_VERSION_HEADER, sizeof(SAPI_PHP_VERSION_HEADER)-1, 1);
        }
 
-       if (PG(output_handler)) {
+       if (PG(output_handler) && PG(output_handler)[0]) {
                zval *output_handler;
 
                ALLOC_INIT_ZVAL(output_handler);