Changeset 7965
- Timestamp:
- 03/19/08 12:33:16 (1 year ago)
- Files:
-
- branches/1.1/lib/debug/sfWebDebug.class.php (modified) (1 diff)
- branches/1.1/lib/util/sfToolkit.class.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/debug/sfWebDebug.class.php
r7899 r7965 308 308 'cache' => sfConfig::get('sf_cache') ? 'on' : 'off', 309 309 'compression' => sfConfig::get('sf_compressed') ? 'on' : 'off', 310 'tokenizer' => function_exists('token_get_all') ? 'on' : 'off', 310 311 'syck' => extension_loaded('syck') ? 'on' : 'off', 311 312 'eaccelerator' => extension_loaded('eaccelerator') && ini_get('eaccelerator.enable') ? 'on' : 'off', branches/1.1/lib/util/sfToolkit.class.php
r7792 r7965 184 184 public static function stripComments($source) 185 185 { 186 if (!sfConfig::get('sf_strip_comments', true)) 187 { 188 return $source; 189 } 190 191 // tokenizer available? 192 if (!function_exists('token_get_all')) 193 { 194 $source = sfToolkit::pregtr($source, array('#/\*((?!\*/)[\d\D\s])*\*/#' => '', // remove /* ... */ 195 '#^\s*//.*$#m' => '')); // remove // ... 196 186 if (!sfConfig::get('sf_strip_comments', true) || !function_exists('token_get_all')) 187 { 197 188 return $source; 198 189 }

