Skip to content

Commit dbabb35

Browse files
committed
Distinguish two error messages
1 parent 1bcc2fc commit dbabb35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/opcache/zend_file_cache.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ zend_persistent_script *zend_file_cache_script_load(zend_file_handle *file_handl
13631363
}
13641364

13651365
if (read(fd, &info, sizeof(info)) != sizeof(info)) {
1366-
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot read from file '%s'\n", filename);
1366+
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot read from file '%s' (info)\n", filename);
13671367
zend_file_cache_flock(fd, LOCK_UN);
13681368
close(fd);
13691369
unlink(filename);
@@ -1411,7 +1411,7 @@ zend_persistent_script *zend_file_cache_script_load(zend_file_handle *file_handl
14111411
#endif
14121412

14131413
if (read(fd, mem, info.mem_size + info.str_size) != (ssize_t)(info.mem_size + info.str_size)) {
1414-
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot read from file '%s'\n", filename);
1414+
zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot read from file '%s' (mem)\n", filename);
14151415
zend_file_cache_flock(fd, LOCK_UN);
14161416
close(fd);
14171417
unlink(filename);

0 commit comments

Comments
 (0)