Skip to content

Commit 1c16749

Browse files
committed
Merge branch 'PHP-7.4' into PHP-8.0
* PHP-7.4: Print error code if CreateMutex() fails
2 parents 187ba43 + e0e167e commit 1c16749

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ext/opcache/shared_alloc_win32.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ void zend_shared_alloc_create_lock(void)
8181
{
8282
memory_mutex = CreateMutex(NULL, FALSE, create_name_with_username(ACCEL_MUTEX_NAME));
8383
if (!memory_mutex) {
84-
zend_accel_error(ACCEL_LOG_FATAL, "Cannot create mutex");
84+
zend_accel_error(ACCEL_LOG_FATAL, "Cannot create mutex (error %u)", GetLastError());
8585
return;
8686
}
8787
ReleaseMutex(memory_mutex);

0 commit comments

Comments
 (0)