summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2018-07-11 14:34:18 +0200
committerAnatol Belski <ab@php.net>2018-07-11 14:34:18 +0200
commit2367e649bc98f77202351af9079d6577d072228b (patch)
tree9085283bc5d53735cc917555b74ce2c07ae730ed
parent9ac133a0b3863ca4d9659140154ee237e5f4669a (diff)
downloadphp-git-2367e649bc98f77202351af9079d6577d072228b.tar.gz
Make error messages more speaking
-rw-r--r--ext/opcache/zend_file_cache.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/opcache/zend_file_cache.c b/ext/opcache/zend_file_cache.c
index 7dcb9fe90b..3f405c6118 100644
--- a/ext/opcache/zend_file_cache.c
+++ b/ext/opcache/zend_file_cache.c
@@ -828,7 +828,7 @@ int zend_file_cache_script_store(zend_persistent_script *script, int in_shm)
filename = zend_file_cache_get_bin_file_path(script->script.filename);
if (zend_file_cache_mkdir(filename, strlen(ZCG(accel_directives).file_cache)) != SUCCESS) {
- zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot create directory for file '%s'\n", filename);
+ zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot create directory for file '%s', %s\n", filename, strerror(errno));
efree(filename);
return FAILURE;
}
@@ -840,7 +840,7 @@ int zend_file_cache_script_store(zend_persistent_script *script, int in_shm)
#endif
if (fd < 0) {
if (errno != EEXIST) {
- zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot create file '%s'\n", filename);
+ zend_accel_error(ACCEL_LOG_WARNING, "opcache cannot create file '%s', %s\n", filename, strerror(errno));
}
efree(filename);
return FAILURE;