// Create file
if ($this->isCacheReadable()) changeMode($this->fqfn, 0666);
- $this->pointer = fopen($this->fqfn, 'w') or app_die(__METHOD__, __LINE__, "Cannot write to cache ".$this->fqfn." !");
+ $this->pointer = fopen($this->fqfn, 'w') or debug_report_bug(__METHOD__, __LINE__, 'Cannot write to cache ' . $this->fqfn . ' !');
// Add open PHP tag
fwrite($this->pointer, "<?php\n");
$this->removeCacheFile(true);
// Unsupported cache found!
- debug_report_bug('Unsupported cache ' . $this->name . ' detected.');
+ debug_report_bug(__METHOD__, __LINE__, 'Unsupported cache ' . $this->name . ' detected.');
}
// Write cache line to file
} // END - if
} else {
// Cache file not found or not readable
- debug_report_bug($this->name);
+ debug_report_bug(__METHOD__, __LINE__, $this->name);
addFatalMessage(__METHOD__, __LINE__, '(<font color="#0000aa">' . __LINE__ . '</font>): ' . getMaskedMessage('CACHE_CANNOT_LOAD', $this->fqfn));
// Try to remove it
}
} elseif (isset($value[0])) {
// These lines needs fixing
- debug_report_bug('Invalid entry with [0] found. key=' . $key);
+ debug_report_bug(__METHOD__, __LINE__, 'Invalid entry with [0] found. key=' . $key);
} else {
// Non-string
$line = '$this->' . $prefix . "['" . $this->name . "']['" . $key . "']" . $extender . ' = ' . $value . ";\n";