Bug #54523 [Com]: echo fatal error

From: Date: Fri, 06 Dec 2013 16:22:54 +0000
Subject: Bug #54523 [Com]: echo fatal error
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-183186@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=54523&edit=1 ID: 54523 Comment by: tyrael@php.net Reported by: kiminoumm at hotmail dot fr Summary: echo fatal error 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: for the record, this was changed in 5.0: http://3v4l.org/5HAoe Previous Comments: ------------------------------------------------------------------------ [2013-12-06 07:24:47] mike@php.net If our semantics were bash-like, I'd see it's usefulness. ------------------------------------------------------------------------ [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

« previous php.bugs (#183186) next »