Bug #65573 [Opn->Nab]: Parsing fails on simple one line echo
| From: | johannes@php.net | Date: | Wed, 28 Aug 2013 15:45:51 +0000 |
| Subject: | Bug #65573 [Opn->Nab]: Parsing fails on simple one line echo | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-181269@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=65573&edit=1
ID: 65573
Updated by: johannes@php.net
Reported by: phpnet at theodore dot phpexperts dot pro
Summary: Parsing fails on simple one line echo
-Status: Open
+Status: Not a bug
Type: Bug
Package: Scripting Engine problem
Operating System: Linux
PHP Version: 5.4.19
Block user comment: N
Private report: N
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
hexdup shows you have some binary stuff (0a c2 a0 c2 a0) behind the opening tag.
00000000 3c 3f 70 68 70 0a c2 a0 c2 a0 20 65 63 68 6f 20 |<?php..... echo |
Previous Comments:
------------------------------------------------------------------------
[2013-08-28 15:22:27] phpnet at theodore dot phpexperts dot pro
The "Attach file" thing appears to have not worked. You can get the exact test
case at http://www.phpexperts.pro/files/bad_php.txt
------------------------------------------------------------------------
[2013-08-28 15:16:25] phpnet at theodore dot phpexperts dot pro
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 this bug report at https://bugs.php.net/bug.php?id=65573&edit=1