Development

Changeset 11909

You must first sign up to be able to contribute.

Changeset 11909

Show
Ignore:
Timestamp:
10/02/08 15:03:05 (6 years ago)
Author:
fabien
Message:

[1.1, 1.2] fixed Functional Test fail when compression is enabled (closes #4019)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/config/sfApplicationConfiguration.class.php

    r11593 r11909  
    106106    { 
    107107      $configCache->import('config/core_compile.yml', false); 
    108  
    109       self::$coreLoaded = true; 
    110108    } 
    111109 
     
    152150 
    153151    // compress output 
    154     ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : ''); 
     152    if (!self::$coreLoaded) 
     153    { 
     154      ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : ''); 
     155    } 
     156 
     157    self::$coreLoaded = true; 
    155158  } 
    156159 
  • branches/1.2/lib/config/sfApplicationConfiguration.class.php

    r11783 r11909  
    101101    { 
    102102      $configCache->import('config/core_compile.yml', false); 
    103  
    104       self::$coreLoaded = true; 
    105103    } 
    106104 
     
    147145 
    148146    // compress output 
    149     ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : ''); 
     147    if (!self::$coreLoaded) 
     148    { 
     149      ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : ''); 
     150    } 
     151 
     152    self::$coreLoaded = true; 
    150153  } 
    151154