PHP 4.0 Bug #7442 Updated: problem with "print <<< END"

From: Date: Wed, 25 Oct 2000 19:08:50 +0000
Subject: PHP 4.0 Bug #7442 Updated: problem with "print <<< END"
Groups: php.dev 
Request: Send a blank email to php-dev+get-35985@lists.php.net to get a copy of this message
ID: 7442 Updated by: torben Reported By: huppe@mailtag.com Status: Closed Bug Type: Apache related Assigned To: Comments: This isn't a bug. From the manual: http://www.php.net/manual/language.types.string.php Another way to delimit strings is by using here doc syntax ("<<<"). One should provide an identifier after <<<, then the string, and then the same identifier to close the quotation. The closing identifier must begin in the first column of the line. The label used must follow the same naming rules as any other label in PHP: it must contain only alphanumeric characters and underscores, and must start with a non-digit character or underscore. The 3rd sentence is the relevant one. Hope this helps. Previous Comments: --------------------------------------------------------------------------- [2000-10-24 18:19:06] huppe@mailtag.com I have a minor problem but it does not stop my server from functioning. If I put the following in one of my server scripts it will fail: function foo() { print <<< END html data.... END; } However this will work fine: function foo() { print <<< END same html data END; } I am running the mod_php4.0.3pl1 and Apache-1.3.14 packages on a FreeBSD system. Please let me know if you require any other info. I don't know if Zend was compiled into mod_php4.0.3pl1. Thanks for a great tool to work with :) Len Huppe huppe@mailtag.com --------------------------------------------------------------------------- Full Bug description available at: http://bugs.php.net/?id=7442

« previous php.dev (#35985) next »