Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/private/Preview/Generator.php
Original file line number Diff line number Diff line change
Expand Up @@ -244,7 +244,7 @@ public static function guardWithSemaphore(int $semId, int $concurrency) {
* @return bool
*/
public static function unguardWithSemaphore($semId): bool {
if (!is_resource($semId) || !extension_loaded('sysvsem')) {
if ($semId === false || get_class($semId) !== 'SysvSemaphore' || !extension_loaded('sysvsem')) {
Comment thread
github-advanced-security[bot] marked this conversation as resolved.
Fixed
Comment thread
szaimen marked this conversation as resolved.
Outdated
return false;
}
return sem_release($semId);
Expand Down