diff --git a/appendices/migration70/incompatible.xml b/appendices/migration70/incompatible.xml index f36b484dd0..93a032f427 100644 --- a/appendices/migration70/incompatible.xml +++ b/appendices/migration70/incompatible.xml @@ -7,6 +7,7 @@ &appendices.migration70.incompatible.variable-handling; &appendices.migration70.incompatible.foreach; &appendices.migration70.incompatible.integers; + &appendices.migration70.incompatible.strings; &appendices.migration70.incompatible.removed-functions; &appendices.migration70.incompatible.removed-ini-directives; &appendices.migration70.incompatible.other; diff --git a/appendices/migration70/incompatible/strings.xml b/appendices/migration70/incompatible/strings.xml new file mode 100644 index 0000000000..c3505b67ee --- /dev/null +++ b/appendices/migration70/incompatible/strings.xml @@ -0,0 +1,102 @@ + + + + + Changes to <type>string</type> handling + + + Hexadecimal strings are no longer considered numeric + + + Strings containing hexadecimal numbers are no longer considered to be + numeric. For example: + + + + + +]]> + + &example.outputs.5; + + + + &example.outputs.7; + + + + + + + filter_var can be used to check if a + string contains a hexadecimal number, and also to convert a + string of that type to an integer: + + + + + +]]> + + + + + + <literal>\u{</literal> may cause errors + + + Due to the addition of the new + Unicode codepoint escape syntax, + strings containing a literal \u{ followed by an invalid + sequence will cause a fatal error. To avoid this, the leading backslash + should be escaped. + + + + +