Development

Changeset 13317

You must first sign up to be able to contribute.

Changeset 13317

Show
Ignore:
Timestamp:
11/24/08 21:54:45 (7 months ago)
Author:
fabien
Message:

[1.1, 1.2] fixed warning for symfony CLI (closes #5019)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/autoload/sfSimpleAutoload.class.php

    r12676 r13317  
    138138    if ($this->cacheChanged) 
    139139    { 
    140       file_put_contents($this->cacheFile, serialize(array($this->classes, $this->dirs, $this->files))); 
     140      if (is_writable(dirname($this->cacheFile))) 
     141      { 
     142        file_put_contents($this->cacheFile, serialize(array($this->classes, $this->dirs, $this->files))); 
     143      } 
    141144 
    142145      $this->cacheChanged = false; 
  • branches/1.2/lib/autoload/sfSimpleAutoload.class.php

    r12676 r13317  
    146146    if ($this->cacheChanged) 
    147147    { 
    148       file_put_contents($this->cacheFile, serialize(array($this->classes, $this->dirs, $this->files))); 
     148      if (is_writable(dirname($this->cacheFile))) 
     149      { 
     150        file_put_contents($this->cacheFile, serialize(array($this->classes, $this->dirs, $this->files))); 
     151      } 
    149152 
    150153      $this->cacheChanged = false; 

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.