Bug #8685 Updated: heredoc: remove column 1 closing identifier requirement
| From: | phpbug at takemeout dot ski-info-online dot com | Date: | Tue, 09 Jul 2002 21:49:29 +0000 |
| Subject: | Bug #8685 Updated: heredoc: remove column 1 closing identifier requirement | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-13643@lists.php.net to get a copy of this message | ||
ID: 8685
Updated by: phpbug@takemeout.ski-info-online.com
Reported By: h.radi@nme.at
Status: Open
Bug Type: Feature/Change Request
PHP Version: 4.3.0
New Comment:
This has bugged me as well. I used here-docs a lot in Unix scripting
and, of course, continue to in PHP. I actually take pride and spend
time beautifying my code (ahhh) and it is a bit annoying to a line
completely out of place. I support the change.
Previous Comments:
------------------------------------------------------------------------
[2002-07-09 02:03:19] philip@php.net
This is a valid feature request and is not bogus. If this is
impossible to implement that's one thing (close this if it is) but
obviously many share feelings towards this request. Bogus->Open
------------------------------------------------------------------------
[2002-03-25 21:26:34] marcj@historia.et.tudelft.nl
I agree with h.radi, philip and phanto: the end tag should not have to
start at the beginning of a line. As a counterexample, consider bash.
In fact, I'd like to ask for something similar to bash's `<<-' (i.e., a
here doc with leading tabs removed, both from the text _and_ the end
tag. See man bash). This way, one can have both the source and the html
looking clean and indented.
------------------------------------------------------------------------
[2002-01-30 05:35:24] phanto@php.net
therfore i wrote 'on its own line'. i suppose heredoc is handled by the
scanner, so this should not be a problem.
yohgaki: you were talking about reasons and mentioned only one that
isn't a reason for me. any other reasons ?
------------------------------------------------------------------------
[2002-01-29 20:17:30] yohgaki@php.net
There are good reasons this will not be implemented.
(As original(?) author memtioned)
Think about possibility that begin/end of heredoc mark appears in text
and
how paser handle text and begin/end of heredoc.
Supporting this does not worth effort, IMHO.
This is just my opinion, so feel free to create/submit patch. ;)
------------------------------------------------------------------------
[2002-01-29 07:59:05] phanto@php.net
thank you philip :)
closing it silently after over a year is a bit to easy. this realy
obfuscates php code a lot and i don't see any valid reason.
so maybe this is an issue for ZE2.
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/8685
--
Edit this bug report at http://bugs.php.net/?id=8685&edit=1