Re: Re: Quick question about closing PHP tags
| From: | Richard Quadling | Date: | Tue, 03 Feb 2009 09:51:36 +0000 |
| Subject: | Re: Re: Quick question about closing PHP tags | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-42891@lists.php.net to get a copy of this message | ||
2009/2/3 Karsten Dambekalns <karsten@typo3.org>:
> Hi.
>
> On 02.02.2009 9:28 Uhr, mike wrote:
>>
>> There's some discussion going on -discuss about whether or not to
>> close PHP tags.
>
> ...
>>
>> Obviously the bonus is no stupid human error/whitespace type issues
>> with output buffering and such. But I wanted to know if there's any
>> opinion either way for any other reasons?
>
> If I expect human errors with whitespace, I better not trust the code.
>
> Honestly, how hard is it to simply start and end your files with <?php and
> ?> and never write HTML and PHP mixed? MVC was mentioned, and templating is
> already some years old as well.
>
> I don't get it, why would I want this? If the tags never had been needed,
> fine, but now...
>
> Regards,
> Karsten
>
> PS: Let the idea grow for another eight years! :)
When PHP6 becomes the norm with its lovely unicode handling, BOM's may
become more prevalent. If the editor of choice supplies them, having
PHP strip them from include/require would be helpful.
Richard.
--
-----
Richard Quadling
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
"Standing on the shoulders of some very clever giants!"