must be greater than or equal to 1¶
Description¶
The second argument of gmp_import() is the number of characters to read in the original string, to build a GMP digit. This size must be 1 or larger, and the string’s length must be a multiple of that number.
Example¶
<?php
gmp_import('11', -2);
?>
Literal Examples¶
Argument #2 ($word_size) must be greater than or equal to 1
Solutions¶
Use the default value of 1, by omitting it.
Use a postive number as second argument.
Changed Behavior¶
This error may appear following an evolution in behavior, in previous versions. See ` <https://php-changed-behaviors.readthedocs.io/en/latest/behavior/.html>`_.