com php-src: Make error messages more speaking: ext/opcache/zen d_file_cache.c
| From: | Anatol Belski | Date: | Wed, 11 Jul 2018 12:34:18 +0000 |
| Subject: | com php-src: Make error messages more speaking: ext/opcache/zen d_file_cache.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102523@lists.php.net to get a copy of this message | ||
Commit: 2367e649bc98f77202351af9079d6577d072228b
Author: Anatol Belski <ab@php.net> Wed, 11 Jul 2018 14:34:18 +0200
Parents: 9ac133a0b3863ca4d9659140154ee237e5f4669a
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=2367e649bc98f77202351af9079d6577d072228b
Log:
Make error messages more speaking
Changed paths:
M ext/opcache/zend_file_cache.c
Diff:
diff --git a/ext/opcache/zend_file_cache.c b/ext/opcache/zend_file_cache.c
index 7dcb9fe..3f405c6 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;