cannot use multiple word order options

Description

The third option of gmp_import() must be either GMP_MSW_FIRST or GMP_LSW_FIRST, but not at the same time.

Example

<?php
gmp_import('a', 1, GMP_MSW_FIRST | GMP_LSW_FIRST);
?>

Literal Examples

  • gmp_import(): Argument #3 ($flags) cannot use multiple endian options

Solutions

  • Use the GMP_MSW_FIRST.

  • Use the GMP_LSW_FIRST.

  • Use the default option, by omitting this argument (default is GMP_MSW_FIRST).

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>`_.