summaryrefslogtreecommitdiff
path: root/ext/opcache
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-03-05 15:09:26 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2021-03-05 15:09:26 +0100
commit9f7c6a824a638073a1cc069b66cce789a7dabcda (patch)
tree950004eb70b771e14d3c1e3557f3d3d824f4a480 /ext/opcache
parentb84f4ed7c385f45b6d93983b199a3d8e9287e790 (diff)
parent1c16749eaa760fc68769a831603eccb45ae11110 (diff)
downloadphp-git-9f7c6a824a638073a1cc069b66cce789a7dabcda.tar.gz
Merge branch 'PHP-8.0'
* PHP-8.0: Print error code if CreateMutex() fails
Diffstat (limited to 'ext/opcache')
-rw-r--r--ext/opcache/shared_alloc_win32.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/opcache/shared_alloc_win32.c b/ext/opcache/shared_alloc_win32.c
index 780fd78f89..76df553468 100644
--- a/ext/opcache/shared_alloc_win32.c
+++ b/ext/opcache/shared_alloc_win32.c
@@ -81,7 +81,7 @@ void zend_shared_alloc_create_lock(void)
{
memory_mutex = CreateMutex(NULL, FALSE, create_name_with_username(ACCEL_MUTEX_NAME));
if (!memory_mutex) {
- zend_accel_error(ACCEL_LOG_FATAL, "Cannot create mutex");
+ zend_accel_error(ACCEL_LOG_FATAL, "Cannot create mutex (error %u)", GetLastError());
return;
}
ReleaseMutex(memory_mutex);