Development

Changeset 33214

You must first sign up to be able to contribute.

Changeset 33214

Show
Ignore:
Timestamp:
11/19/11 14:47:24 (6 months ago)
Author:
fabien
Message:

[1.4] fixed ob_start() behavior on CLI (closes #9970)

Files:

Legend:

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

    r33208 r33214  
    151151 
    152152    // compress output 
    153     if (!self::$coreLoaded
    154     { 
    155       ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : null); 
     153    if (!self::$coreLoaded && sfConfig::get('sf_compressed')
     154    { 
     155      ob_start('ob_gzhandler'); 
    156156    } 
    157157 
  • branches/1.4/lib/exception/sfException.class.php

    r33208 r33214  
    101101      } 
    102102 
    103       ob_start(sfConfig::get('sf_compressed') ? 'ob_gzhandler' : null); 
     103      if (sfConfig::get('sf_compressed')) { 
     104          ob_start('ob_gzhandler'); 
     105      } 
    104106 
    105107      header('HTTP/1.0 500 Internal Server Error');