From: phpnet at theodore dot phpexperts dot pro Operating system: Linux PHP version: 5.4.19 Package: Scripting Engine problem Bug Type: Bug Bug description:Parsing fails on simple one line echo
Description: ------------ PHP Parse error: syntax error, unexpected 'echo' (T_ECHO) in bad.php on line 2 I have attached the affected file. I can readily duplicate the issue across various PHP instances ranging from 5.2 to 5.4.19, nothing else was tested. Test script: --------------- <?php   echo "This should work. But it doesn't!\n"; Expected result: ---------------- Output: "This should work. But it doesn't!" Actual result: -------------- PHP Parse error: syntax error, unexpected 'echo' (T_ECHO) in /home/tsmith/books/dimensional_shift/test.php on line 2 -- Edit bug report at https://bugs.php.net/bug.php?id=65573&edit=1 -- Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=65573&r=trysnapshot54 Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=65573&r=trysnapshot53 Try a snapshot (trunk): https://bugs.php.net/fix.php?id=65573&r=trysnapshottrunk Fixed in SVN: https://bugs.php.net/fix.php?id=65573&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=65573&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=65573&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=65573&r=needscript Try newer version: https://bugs.php.net/fix.php?id=65573&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=65573&r=support Expected behavior: https://bugs.php.net/fix.php?id=65573&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=65573&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=65573&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=65573&r=globals PHP 4 support discontinued: https://bugs.php.net/fix.php?id=65573&r=php4 Daylight Savings: https://bugs.php.net/fix.php?id=65573&r=dst IIS Stability: https://bugs.php.net/fix.php?id=65573&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=65573&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=65573&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=65573&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=65573&r=mysqlcfg