Req #8685 [Opn->Wfx]: heredoc: remove column 1 closing identifier requirement
| From: | ajf@php.net | Date: | Thu, 08 Jan 2015 22:16:09 +0000 |
| Subject: | Req #8685 [Opn->Wfx]: heredoc: remove column 1 closing identifier requirement | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-189755@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=8685&edit=1
ID: 8685
Updated by: ajf@php.net
Reported by: h dot radi at nme dot at
Summary: heredoc: remove column 1 closing identifier
requirement
-Status: Open
+Status: Wont fix
Type: Feature/Change Request
Package: Scripting Engine problem
Operating System: *
PHP Version: *
Block user comment: N
Private report: N
New Comment:
There's been no interest in changing this, and it's largely unnecessary anyway: single-
and double-quoted strings can be multiline. So I'll mark this as wontfix.
Previous Comments:
------------------------------------------------------------------------
[2003-01-26 15:48:49] brannonsmith at yahoo dot com
I like the example by marcj@historia.et.tudelft.nl with bash. This is an important issue for
readability, which should be important to any developer (IMHO). Since it is implemented in
open-source bash, could the bash parser handling of it offer any hints or solutions as to how to
integrate it into PHP? Or are they so dissimilar that it would be useless? I am not a bash internals
hacker (nor PHP) so maybe I'm barking up the wrong tree. In any case, indentable closing tags
would be an OUTSTANDING feature tho. Hope it hasn't been forgotten in 2003...
------------------------------------------------------------------------
[2002-07-10 02:11:27] derick@php.net
I had a look at implementing this yesterday, but it was harder than it seemed in the first place.
It can also be that my lexx knowlegde is a bit rusty :)
Derick
------------------------------------------------------------------------
[2002-07-09 17:49:29] phpbug at takemeout dot ski-info-online dot com
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.
------------------------------------------------------------------------
[2002-03-25 21:26:34] marcj at historia dot et dot tudelft dot 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-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. ;)
------------------------------------------------------------------------
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
https://bugs.php.net/bug.php?id=8685
--
Edit this bug report at https://bugs.php.net/bug.php?id=8685&edit=1