diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2018-05-28 22:14:04 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2018-05-28 22:14:04 +0200 |
commit | c70468b8d3c1d6711da0db84cba30d87d2482e5c (patch) | |
tree | c37c28c1e946771a0843f736b06d3afc40f6d275 | |
parent | 6f4a01da21d455e593e34c0b77b9fd6987961bb4 (diff) | |
download | php-git-c70468b8d3c1d6711da0db84cba30d87d2482e5c.tar.gz |
Add note about heredoc BC break
-rw-r--r-- | UPGRADING | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -30,6 +30,20 @@ Core: thrown exceptions. . TypeError now reports wrong types as `int` and `bool` instead of `integer` and `boolean`. + . Due to the introduction of flexible heredoc/nowdoc syntax (see New Features + section), doc strings that contain the ending label inside their body may + cause syntax errors or change in interpretation. For example in + + $str = <<<FOO + abcdefg + FOO + FOO; + + the indented occurrence of "FOO" did not previously have any special + meaning. Now it will be interpreted as the end of the heredoc string and + the following "FOO;" will cause a syntax error. This issue can always be + resolved by choosing an ending label that does not occur within the contents + of the string. BCMath: . All warnings thrown by BCMath functions are now using PHP's error handling. |