#36682 [Opn->Bgs]: Heredoc not correctly parsed

From: Date: Fri, 10 Mar 2006 17:07:35 +0000
Subject: #36682 [Opn->Bgs]: Heredoc not correctly parsed
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-94146@lists.php.net to get a copy of this message
ID: 36682 Updated by: johannes@php.net Reported By: daniele_dll at yahoo dot it -Status: Open +Status: Bogus Bug Type: Scripting Engine problem Operating System: Windows XP SP2 PHP Version: 5.1.2 New Comment: Thank you for taking the time to write to us, but this is not a bug. Please double-check the documentation available at http://www.php.net/manual/ and the instructions on how to report a bug at http://bugs.php.net/how-to-report.php The terminating new line is obligatory Previous Comments: ------------------------------------------------------------------------ [2006-03-10 17:50:07] daniele_dll at yahoo dot it Description: ------------ Terminating an heredoc without a newline cause a parse error. The reported code was tested with php 5.0.4, 5.0.5 and 5.1.2 Reproduce code: --------------- <?php echo <<< HEREDOC_EOF Test Heredoc All works fine! HEREDOC_EOF;?> Expected result: ---------------- This code should output the text into the heredoc Actual result: -------------- The execution of this code return a parse error ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=36682&edit=1

« previous php.bugs (#94146) next »