Edit report at https://bugs.php.net/bug.php?id=65573&edit=1

 ID:                 65573
 User updated by:    phpnet at theodore dot phpexperts dot pro
 Reported by:        phpnet at theodore dot phpexperts dot pro
 Summary:            Parsing fails on simple one line echo
 Status:             Open
 Type:               Bug
 Package:            Scripting Engine problem
 Operating System:   Linux
 PHP Version:        5.4.19
 Block user comment: N
 Private report:     N

 New Comment:

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


Previous Comments:
------------------------------------------------------------------------
[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

Reply via email to