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

 ID:                 54523
 Updated by:         johan...@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

Reply via email to