cannot use multiple endian options
Description
The third option of gmp_import() must be either GMP_BIG_ENDIAN, GMP_NATIVE_ENDIAN or GMP_LITTLE_ENDIAN, but not at the same time.
Example
<?php
gmp_import('a', 1, GMP_BIG_ENDIAN | GMP_LITTLE_ENDIAN);
?>
Literal Examples
- gmp_import(): Argument #3 ($flags) cannot use multiple word order options
Alternatives
- Use the
GMP_NATIVE_ENDIAN. - Use the
GMP_BIG_ENDIAN. - Use the
GMP_LITTLE_ENDIAN. - Use the default option, by omitting this argument (default is
GMP_NATIVE_ENDIAN).
Changed Behavior
This error may appear following an evolution in behavior, in previous versions. See