.. _cannot-use-multiple-endian-options:
cannot use multiple endian options
----------------------------------
.. meta::
:description:
cannot use multiple endian options: 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.
:og:image: https://php-errors.readthedocs.io/en/latest/_static/logo.png
:og:type: article
:og:title: cannot use multiple endian options
:og: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
:og:url: https://php-errors.readthedocs.io/en/latest/messages/cannot-use-multiple-endian-options.html
:og:locale: en
:twitter:card: summary_large_image
:twitter:site: @exakat
:twitter:title: cannot use multiple endian options
:twitter:description: cannot use multiple endian options: 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
:twitter:creator: @exakat
:twitter:image:src: https://php-errors.readthedocs.io/en/latest/_static/logo.png
.. raw:: html
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
_______
.. code-block:: php
Literal Examples
****************
+ gmp_import(): Argument #3 ($flags) cannot use multiple word order options
Solutions
_________
+ 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 ` `_.