Skip to content

Commit 0ff2b23

Browse files
Merge branch '4.4' into 5.2
* 4.4: cs fix [DependencyInjection][Console] tighten types [Lock] fix derivating semaphore from key
2 parents 54b6dd6 + 8c62591 commit 0ff2b23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Store/SemaphoreStore.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ private function lock(Key $key, bool $blocking)
6262
return;
6363
}
6464

65-
$keyId = crc32($key);
65+
$keyId = unpack('i', md5($key, true))[1];
6666
$resource = sem_get($keyId);
6767
$acquired = @sem_acquire($resource, !$blocking);
6868

0 commit comments

Comments
 (0)