Ask a Question related to PHP Development, Design and Development.
-
Robert Cummings #1
[PHP-DEV] Question about ?> bug or feature.
Hi all,
Could someone let me know if omission of the closing php tag from a
source file without generating an error is a bug or a feature? I've
always thought it a feature, but someone suggested on the general list
that it's a bug.
Thanks in advance,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - [url]http://www.interjinn.com[/url] |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
Robert Cummings Guest
-
Feature or Bug
I have noticed while reading these newsgroups for information that when I click on a supplied link in a post, that IE 7 will open but the web page... -
Feature Question: Markers
As the answer to my previous question was a surprising but resounding NO all around, let me try this one.... It is possible to embed non-printing... -
Feature Question: Generic Macro Capability
Does indesign have any support for embedded macros along the lines that Word does? 1. Is there any way to insert any non-printing text into a... -
feature or bug?
Forwarding to Aspnet and Aspnet.Security. They may have run across this question before. Shel -- This posting is provided "AS IS" with no... -
Bug or feature in SQL SP
Hi all. In db2diag.log I found next record 2003-07-03-13.21.46.812000 Instance:DB2 Node:000 PID:2096(db2dari.exe) TID:3144 Appid:... -
Jon Parise #2
Re: [PHP-DEV] Question about ?> bug or feature.
On Sat, Nov 15, 2003 at 07:14:54PM -0500, Robert Cummings wrote:
It's really neither. It's a function of the language definition.> Could someone let me know if omission of the closing php tag from a
> source file without generating an error is a bug or a feature? I've
> always thought it a feature, but someone suggested on the general list
> that it's a bug.
'<?php' means "start interpretting the following as PHP code". '?>'
ends the PHP interpretation. If there's no need to end the PHP
interpretation at the end of a file and return to "normal" output
mode, then the trailing '?>' is extraneous.
--
Jon Parise (jon@php.net) :: The PHP Project ([url]http://www.php.net/[/url])
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
Jon Parise Guest
-
Andi Gutmans #3
Re: [PHP-DEV] Question about ?> bug or feature.
At 07:14 PM 11/15/2003 -0500, Robert Cummings wrote:
It's a feature.>Hi all,
>
>Could someone let me know if omission of the closing php tag from a
>source file without generating an error is a bug or a feature? I've
>always thought it a feature, but someone suggested on the general list
>that it's a bug.
Andi
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
Andi Gutmans Guest
-
Rasmus Lerdorf #4
Re: [PHP-DEV] Question about ?> bug or feature.
It's actually quite beneficial to leave it off in included files.
Trailing carriage returns will not mess things up for any headers that
might be sent after the include if you leave off the closing ?>
-Rasmus
On Sat, 15 Nov 2003, Jon Parise wrote:
--> On Sat, Nov 15, 2003 at 07:14:54PM -0500, Robert Cummings wrote:
>>> > Could someone let me know if omission of the closing php tag from a
> > source file without generating an error is a bug or a feature? I've
> > always thought it a feature, but someone suggested on the general list
> > that it's a bug.
> It's really neither. It's a function of the language definition.
> '<?php' means "start interpretting the following as PHP code". '?>'
> ends the PHP interpretation. If there's no need to end the PHP
> interpretation at the end of a file and return to "normal" output
> mode, then the trailing '?>' is extraneous.
>
>
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
Rasmus Lerdorf Guest
-
Robert Cummings #5
Re: [PHP-DEV] Question about ?> bug or feature.
On Sun, 2003-11-16 at 01:23, Rasmus Lerdorf wrote:
That's what I thought. Thanks guys, that's a fantastic feature :)> It's actually quite beneficial to leave it off in included files.
> Trailing carriage returns will not mess things up for any headers that
> might be sent after the include if you leave off the closing ?>
Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - [url]http://www.interjinn.com[/url] |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: [url]http://www.php.net/unsub.php[/url]
Robert Cummings Guest



Reply With Quote

