Skip to content

Commit

Permalink
Merge pull request #7070 from ricardoboss/issue-6968-php-int-max-isnt…
Browse files Browse the repository at this point in the history
…-positive

Fix #6968: PHP_INT_MAX isn't positive
  • Loading branch information
orklah committed Dec 5, 2021
2 parents eb4e9de + c35d294 commit 09bcdb0
Showing 1 changed file with 5 additions and 3 deletions.
Expand Up @@ -164,13 +164,15 @@ public static function getGlobalConstType(
case 'PHP_RELEASE_VERSION':
case 'PHP_DEBUG':
case 'PHP_FLOAT_DIG':
case 'PHP_INT_MAX':
case 'PHP_INT_MIN':
case 'PHP_ZTS':
return Type::getInt();

case 'PHP_INT_MAX':
case 'PHP_INT_SIZE':
case 'PHP_MAXPATHLEN':
case 'PHP_VERSION_ID':
case 'PHP_ZTS':
return Type::getInt();
return Type::getPositiveInt();

case 'PHP_FLOAT_EPSILON':
case 'PHP_FLOAT_MAX':
Expand Down

0 comments on commit 09bcdb0

Please sign in to comment.