pecl-system-sync icon indicating copy to clipboard operation
pecl-system-sync copied to clipboard

SyncMutex: 'Mutex could not be created' on Windows

Open MacGritsch opened this issue 1 month ago • 2 comments

I have tested the sync-module and specially the SyncMutex-class on Windows (PHP 8.3.x X64 TS). It worked fine but after around one day, creation of Mutex fails with the exception "Mutex could not be created". Is this something known? In sourcecode I see that CreateMutexA() is used on windows. There seems to be no call to GetLastError(), so no idea why it fails creating the Mutex. Could this be added? I can not compile the module for Windows by myself, but I compiled it on macos and there it works fine.

Thank you for your grat work!

MacGritsch avatar Dec 01 '25 08:12 MacGritsch