Skip to content

Commit

Permalink
Merge branch 'PHP-8.3'
Browse files Browse the repository at this point in the history
* PHP-8.3:
  [ci skip] NEWS
  Fix incorrect check in fpm_shm_free() (#13797)
  • Loading branch information
nielsdos committed Mar 24, 2024
2 parents 191d050 + 81ae606 commit ab8e0b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sapi/fpm/fpm/fpm_shm.c
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ int fpm_shm_free(void *mem, size_t size) /* {{{ */
return 0;
}

if (fpm_shm_size - size > 0) {
if (fpm_shm_size > size) {
fpm_shm_size -= size;
} else {
fpm_shm_size = 0;
Expand Down

0 comments on commit ab8e0b7

Please sign in to comment.