[wp-trac] [WordPress Trac] #10633: Omit closing PHP tag at the end of a file when using include() or require()
WordPress Trac
wp-trac at lists.automattic.com
Wed Sep 9 23:24:00 UTC 2009
#10633: Omit closing PHP tag at the end of a file when using include() or require()
-------------------------+--------------------------------------------------
Reporter: hakre | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Future Release
Component: General | Version: 2.9
Severity: normal | Keywords: has-patch
-------------------------+--------------------------------------------------
Comment(by hakre):
Replying to [comment:3 dd32]:
> There was some talk not too long ago about only having user-editable
files without the closing tag, as it was useful for people to know if the
file was fully uploaded.
You're kidding, right? Having "?>" is no proof of a fully uploaded file,
that argument sounds not very serious to me.
When I see spaces and linebreaks after the ?> near the end of a file I
always asked myself, what went wrong here... . But I do not need to make a
big discussion out of this, I already suggested something to deal with
this as well.
Replying to [comment:4 westi]:
> I don't see the need for this except possible on user-editable files.
Do you want to say that good coding practices are actually not counting?
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10633#comment:5>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list