Closed
Description
Description
The following code:
(new Hashids('', 7))->encode('09009956789098')
Resulted in this output:
gmp_mod(): Argument php/php-src#1 ($num1) is not an integer string
Only seems to happen when the start of the string contains a zero. Also asked at https://stackoverflow.com/questions/78371967/gmp-mod-argument-1-num1-is-not-an-integer-string-hashids-package
But I expected a correct output
usin t
PHP Version
8.3.6
Operating System
CentOS 9 stream