[stable30] fix(32bit): use PHP_INT_MAX where needed
#52513
Merged
PHP_INT_MAX where needed
#52513