We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6253181 commit f7811b9Copy full SHA for f7811b9
c3.php
@@ -38,9 +38,13 @@
38
if (!function_exists('__c3_error')) {
39
function __c3_error($message)
40
{
41
- $errorLogFile = defined('C3_CODECOVERAGE_ERROR_LOG_FILE') ?
42
- C3_CODECOVERAGE_ERROR_LOG_FILE :
43
- C3_CODECOVERAGE_MEDIATE_STORAGE . DIRECTORY_SEPARATOR . 'error.txt';
+ if (defined('C3_CODECOVERAGE_ERROR_LOG_FILE')) {
+ $errorLogFile = C3_CODECOVERAGE_ERROR_LOG_FILE;
+ } elseif (defined('C3_CODECOVERAGE_MEDIATE_STORAGE')) {
44
+ $errorLogFile = C3_CODECOVERAGE_MEDIATE_STORAGE . DIRECTORY_SEPARATOR . 'error.txt';
45
+ } else {
46
+ $errorLogFile = null;
47
+ }
48
if (is_writable($errorLogFile)) {
49
file_put_contents($errorLogFile, $message);
50
} else {
0 commit comments