[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
Thu Sep 10 07:45:29 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 dev-feedback
-------------------------+--------------------------------------------------
Changes (by dd32):
* keywords: has-patch => has-patch dev-feedback
Comment:
> You're kidding, right? Having "?>" is no proof of a fully uploaded file,
that argument sounds not very serious to me.
To a technical user yes. But to a non-PHPer, No. Quite often people will
ask why wp-config.php doesnt have it, as they think it means its not fully
there.
Semantics are not always for the programming language.
Whitespace immediately following a ?> is ignored by PHP and not rendered,
However, Multiple new lines are not ignored (Single is fine, multiple is
not).
Wontfix pending dev-feedback
--
Ticket URL: <http://core.trac.wordpress.org/ticket/10633#comment:6>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list