Skip to content

Fix Bug #80560: Strings containing only a base prefix return 0 object#6549

Closed
Girgias wants to merge 1 commit intophp:PHP-8.0from
Girgias:gmp-fix-weird-numbers
Closed

Fix Bug #80560: Strings containing only a base prefix return 0 object#6549
Girgias wants to merge 1 commit intophp:PHP-8.0from
Girgias:gmp-fix-weird-numbers

Conversation

@Girgias
Copy link
Member

@Girgias Girgias commented Dec 29, 2020

Targets PHP 8.0 as this is long standing behaviour and not sure if it's worth to fix in PHP 7.4, as it's also a BC breaking change.

Copy link
Member

@cmb69 cmb69 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Given that passing an empty string is an error, it makes sense to disallow this as well. I agree that the fix should target 8.0+.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants