[PHP-BUG] Bug #77539 [NEW]: BC break in heredoc syntax in 7.3
[email protected] ("rasc at jfmedier dot dk") Tue, 29 Jan 2019 10:20:27 +0000
| Newsgroups | php.standards |
|---|---|
| Message-ID | <[email protected]> |
From: rasc at jfmedier dot dk Operating system: Windows 10 / WSL PHP version: 7.3.1 Package: PHP Language Specification Bug Type: Bug Bug description:BC break in heredoc syntax in 7.3 Description: ------------ PHP 7.3 introduced a minor BC syntax break against 7.2. Likely this regression was introduced while refactoring to introduce support for flexible heredoc/nowdoc syntax in 7.3. You can see a failing build here: https://travis-ci.org/kodus/mail/jobs/485801377 This build succeeds under 7.1 and 7.2, but fails under 7.3. You can see the parse error affecting 7.3.0 and 7.3.1 here: https://3v4l.org/1H0l7 (by the way: looks like the documentation page was never updated to reflect changed from the flexible heredoc/nowdoc syntax RFC.) Test script: --------------- <?php $mime_header = <<<MIME Date: Thu, 15 Sep 2016 17:20:54 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 MIME; Expected result: ---------------- Should compile. Actual result: -------------- Exits with the following error: > Parse error: syntax error, unexpected ':' in /in/1H0l7 on line 5 -- Edit bug report at https://bugs.php.net/bug.php?id=77539&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=77539&r=trysnapshot54 Try a snapshot (PHP 5.5): https://bugs.php.net/fix.php?id=77539&r=trysnapshot55 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=77539&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=77539&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=77539&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=77539&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=77539&r=needscript Try newer version: https://bugs.php.net/fix.php?id=77539&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=77539&r=support Expected behavior: https://bugs.php.net/fix.php?id=77539&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=77539&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=77539&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=77539&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=77539&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=77539&r=dst IIS Stability: https://bugs.php.net/fix.php?id=77539&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=77539&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=77539&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=77539&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=77539&r=mysqlcfg