|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2021-08-24 12:10 UTC] cmb@php.net
-Status: Open
+Status: Verified
[2021-08-24 12:10 UTC] cmb@php.net
[2021-08-24 13:12 UTC] nikic@php.net
[2023-09-27 15:00 UTC] nielsdos@php.net
-Status: Verified
+Status: Closed
-Assigned To:
+Assigned To: nielsdos
[2023-09-27 15:00 UTC] nielsdos@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 09:00:01 2025 UTC |
Description: ------------ gmp_init() is documented to only accept strings and ints. However, its error message says that it also accepts GMP objects while simultaneously saying it does not. Test script: --------------- php > gmp_init(gmp_init(5)); PHP Warning: Uncaught TypeError: gmp_init(): Argument #1 ($num) must be of type GMP|string|int, GMP given in php shell code:1 Stack trace: #0 php shell code(1): gmp_init(Object(GMP)) #1 {main} thrown in php shell code on line 1