Skip to content

Fix GH-9308 GMP throws the wrong error when a GMP object is passed to gmp_init() #9490

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from

Conversation

Girgias
Copy link
Member

@Girgias Girgias commented Sep 6, 2022

Merging up is going to a bit of a PITA due to the changes which make GMP handle octal strings in regards to https://wiki.php.net/rfc/explicit_octal_notation

--TEST--
Bug GH-9308: GMP throws the wrong error when a GMP object is passed to gmp_init()
--SKIPIF--
<?php if (!extension_loaded("gmp")) print "skip"; ?>
Copy link
Member

Choose a reason for hiding this comment

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

Normally we use die('skip explanation');. If there are multiple ifs the script would continue running.

Copy link
Member Author

Choose a reason for hiding this comment

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

I copy pasted this from one of the other bug tests and didn't double check the section, will amend.

@Girgias Girgias closed this in 293e691 Sep 13, 2022
@Girgias Girgias deleted the gh9308-gmp branch September 13, 2022 10:36
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