Bug #54523 [Opn->Wfx]: echo fatal error
Edit report at https://bugs.php.net/bug.php?id=54523&edit=1
ID: 54523
Updated by: mike@php.net
Reported by: kiminoumm at hotmail dot fr
Summary: echo fatal error
-Status: Open
+Status: Wont fix
Type: Bug
Package: *General Issues
Operating System: WIN NT5.2
PHP Version: 5.2.17
Block user comment: N
Private report: N
New Comment:
If our semantics were bash-like, I'd see it's usefulness.
Previous Comments:
------------------------------------------------------------------------
[2011-04-13 16:37:40] johannes@php.net
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 ...
------------------------------------------------------------------------
[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 https://bugs.php.net/bug.php?id=54523&edit=1
Thread (4 messages)