Skip to content

Commit 9f7c6a8

Browse files
committed
Merge branch 'PHP-8.0'
* PHP-8.0: Print error code if CreateMutex() fails
2 parents b84f4ed + 1c16749 commit 9f7c6a8

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)