| Date: | 2009-05-28 11:59:03 (1 year 3 months ago) |
|---|---|
| Author: | Loïc d'Anterroches |
| Commit: | 710db67557c89cea3aa553b492a182b5939ac390 |
| Message: | Fixed to ignore when not the rights to write the file. |
| Files: |
src/Pluf.php (1 diff) |
Change Details
| src/Pluf.php | ||
|---|---|---|
| 96 | 96 | // statement and possibly in the configuration file. |
| 97 | 97 | if ($usecache) { |
| 98 | 98 | $s = var_export(array($GLOBALS['_PX_models'], $GLOBALS['_PX_signal']), true); |
| 99 | file_put_contents($cache, | |
| 100 | '<?php return '.$s.';'."\n", | |
| 101 | LOCK_EX); | |
| 102 | chmod($cache, 0755); | |
| 99 | if (@file_put_contents($cache, '<?php return '.$s.';'."\n", | |
| 100 | LOCK_EX)) { | |
| 101 | chmod($cache, 0755); | |
| 102 | } | |
| 103 | 103 | } |
| 104 | 104 | } |
| 105 | 105 | |
