PHP 4.0 Bug #6251: Characters after end of heredoc cause parse error.

From: Date: Sat, 19 Aug 2000 00:34:12 +0000
Subject: PHP 4.0 Bug #6251: Characters after end of heredoc cause parse error.
Groups: php.dev 
Request: Send a blank email to php-dev+get-29610@lists.php.net to get a copy of this message
From: torben@php.net Operating system: Mandrake Linux 7.0 PHP version: 4.0 Latest CVS (18/08/2000) PHP Bug Type: Scripting Engine problem Bug description: Characters after end of heredoc cause parse error. <?php error_reporting(E_ALL); $str = <<<EOT When anything but a newline or carriage return--even whitespace, or a comment--comes after the semicolon after the heredoc closing label (on the same line), a parse error is generated. EOT; echo $str; ?> This was compiled from cvs last night; configure line: ./configure \ --with-java \ --with-mysql=/usr/local/mysql \ --with-gd \ --with-apxs=/usr/local/apache/bin/apxs \ --enable-versioning \ --enable-track-vars \ --enable-sysvshm \ --disable-debug \ --with-xml \ --with-dom=/usr/lib

« previous php.dev (#29610) next »