Bug #54523 [Opn]: echo fatal error
| From: | johannes@php.net | Date: | Wed, 13 Apr 2011 14:37:40 +0000 |
| Subject: | Bug #54523 [Opn]: echo fatal error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-160152@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=54523&edit=1
ID: 54523
Updated by: johannes@php.net
Reported by: kiminoumm at hotmail dot fr
Summary: echo fatal error
Status: Open
Type: Bug
Package: *General Issues
Operating System: WIN NT5.2
PHP Version: 5.2.17
Block user comment: N
Private report: N
New Comment:
Not sure when/why this broke. You're mentioning 5.2, so it can't be our
change from flex to re2c for the scanner. Anyways:
I can see that there are cases where allowing this makes sense. simple
example might be a templating system generating code, something like
this:
fwrite($file, 'echo '.implode(', ', $texts).';');
On the other hand I don't like having this case in the language ...
Previous Comments:
------------------------------------------------------------------------
[2011-04-13 16:00:00] kiminoumm at hotmail dot fr
Description:
------------
I just migrate my script to an old php version (4.3.5) to an newest, and
now i get an fatal error when i use the echo function without parameter
Test script:
---------------
echo ;
Expected result:
----------------
a blank thing
Actual result:
--------------
an Fatal error
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=54523&edit=1