Skip to content

Commit

Permalink
Changed ApcStorageLock::maybeAvailable() to delete a lock data from t…
Browse files Browse the repository at this point in the history
…he Apcu Storage when the expiration value is zero
  • Loading branch information
avpaderno committed Feb 17, 2025
1 parent 6125a96 commit b1e9024
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion includes/apc_storage_lock.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ class ApcStorageLock {
return FALSE;
}

if (microtime(TRUE) > (float) $data['expire']) {
if (empty($data['expire']) || microtime(TRUE) > (float) $data['expire']) {
return apcu_delete($this->key);
}

Expand Down

0 comments on commit b1e9024

Please sign in to comment.