.. _type-octalinstring: .. _invalid-octal-in-string: Invalid Octal In String +++++++++++++++++++++++ Any octal sequence inside a string can't be go \377. Those will be a fatal `error `_ at parsing time. The check is applied to the string, starting with PHP 7.1. In PHP 7.0 and older, those sequences were silently adapted (modulo/% \400). .. code-block:: php See also `Integers `_. Related PHP errors ------------------- + `0 `_ Suggestions ___________ * Use a double slash to avoid the sequence to be an octal sequence * Use a function call, such as decoct() to convert larger number to octal notation Specs _____ +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Short name | Type/OctalInString | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Rulesets | :ref:`All `, :ref:`Changed Behavior `, :ref:`CompatibilityPHP71 `, :ref:`Inventory ` | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Exakat since | 0.9.1 | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | PHP Version | With PHP 7.1 and older | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Severity | Major | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Time To Fix | Quick (30 mins) | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Precision | Very high | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+ | Available in | `Entreprise Edition `_, `Exakat Cloud `_ | +--------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+