Development

Changeset 8179

You must first sign up to be able to contribute.

Changeset 8179

Show
Ignore:
Timestamp:
04/01/08 13:24:37 (1 year ago)
Author:
pookey
Message:

improving errors when attempting to write a cache file fails to create directory

Files:

Legend:

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

    r7792 r8179  
    331331    { 
    332332      $current_umask = umask(0000); 
    333       @mkdir(dirname($cache), 0777, true); 
     333      if (false === @mkdir(dirname($cache), 0777, true)) 
     334      { 
     335        throw new sfCacheException(sprintf('Failed to make cache directory "%s" while generating cache for configuration file "%s".', dirname($cache), $config)); 
     336      } 
    334337      umask($current_umask); 
    335338    } 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.