#31371 [Opn->Ver]: highlight_file () and missing line return after heredoc closing statement

From: Date: Sun, 02 Jan 2005 19:22:03 +0000
Subject: #31371 [Opn->Ver]: highlight_file () and missing line return after heredoc closing statement
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-71394@lists.php.net to get a copy of this message
ID: 31371 Updated by: rasmus@php.net Reported By: justin at superglobals dot com -Status: Open +Status: Verified -Bug Type: *General Issues +Bug Type: Scripting Engine problem Operating System: FreeBSD 5.2.1 PHP Version: 5.0.3 New Comment: Yup, this is an annoying bug I have run across as well. Previous Comments: ------------------------------------------------------------------------ [2005-01-01 01:17:16] justin at superglobals dot com Description: ------------ highlight_file () doesn't seem to be understanding heredoc's quite right. It forgets to place a line return after the closing heredoc tag. Reproduce code: --------------- test.php <?php $here = <<<DOC asdf asdf asdf DOC; highlight_file ('test.php'); ?> Expected result: ---------------- <?php $here = <<<DOC asdf asdf asdf DOC; highlight_file ('test.php'); ?> Actual result: -------------- <?php $here = <<<DOC asdf asdf asdf DOC;highlight_file ('test.php'); ?> ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=31371&edit=1

« previous php.bugs (#71394) next »