summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph M. Becker <cmbecker69@gmx.de>2021-03-05 15:08:24 +0100
committerChristoph M. Becker <cmbecker69@gmx.de>2021-03-05 15:08:24 +0100
commit1c16749eaa760fc68769a831603eccb45ae11110 (patch)
tree6a6fa35ee49799534b41748fc15d48ca41bbf2e4
parent187ba4353a2f62d9400ead603ddf7112dc4e855c (diff)
parente0e167e5812287a7944fa21f2515b61b08c67b1f (diff)
downloadphp-git-1c16749eaa760fc68769a831603eccb45ae11110.tar.gz
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Print error code if CreateMutex() fails
-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 06df5270d4..497132d9cc 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);