PHP 4.0 Bug #9387 Updated: Doc String Quoting Problem
| From: | torben@php.net | Date: | Wed, 21 Feb 2001 22:38:08 +0000 |
| Subject: | PHP 4.0 Bug #9387 Updated: Doc String Quoting Problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-47187@lists.php.net to get a copy of this message | ||
ID: 9387
Updated by: torben
Reported By: jeffdl@mn.mediaone.net
Old-Status: Open
Status: Bogus
Bug Type: Feature/Change Request
Assigned To:
Comments:
This is not a bug. Check the third sentence below, from the PHP Manual at http://www.php.net/manual/en/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.
Previous Comments:
---------------------------------------------------------------------------
[2001-02-21 17:21:34] jeffdl@mn.mediaone.net
When you are using doc string quoting or something, php doesn't recognize the thing that stops
it if indented at all or something. There are two examples to illistrate my point:
echo <<<BARFY
This is a good example.
It works perfectly.
BARFY
echo <<<BARFY
This is a bad example.
It fails miserably.
Note the space before BARFY.
BARFY
Maybe this is a bug, maybe it is a feature. I don't know, but please fix it or make note of it
in the manual. Thanks.
---------------------------------------------------------------------------
ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at http://bugs.php.net/?id=9387&edit=2