]> granicus.if.org Git - php/commit
Fix GMP comparison object handler
authorGeorge Peter Banyard <girgias@php.net>
Tue, 29 Dec 2020 16:50:37 +0000 (17:50 +0100)
committerGeorge Peter Banyard <girgias@php.net>
Mon, 4 Jan 2021 13:47:50 +0000 (14:47 +0100)
commit1b5c62facdaaf0bb55fb2ed2b1aa8a1aca81e32b
tree057ef2702010fd933f0519916e4647617d23c7c7
parentaf7445b9ac3bda9985b5b3843d5165f0bec8ec4b
Fix GMP comparison object handler

gmp_cmp() doesn't return false anymore in PHP 8 but will throw
an Error if compared to a non numeric string or another type of object.

Closes GH-6553
ext/gmp/gmp.c
ext/gmp/tests/comparison_invalid.phpt [new file with mode: 0644]