Skip to content

gmp_mod(): Argument #1 ($num1) is not an integer string #3336

Closed
@sts-ryan-holton

Description

@sts-ryan-holton

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

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions