Re: Question about ?> bug or feature.

From: Date: Sun, 16 Nov 2003 00:26:27 +0000
Subject: Re: Question about ?> bug or feature.
References: 1  Groups: php.internals 
Request: Send a blank email to internals+get-5484@lists.php.net to get a copy of this message
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. -- Jon Parise (jon@php.net) :: The PHP Project (http://www.php.net/)

« previous php.internals (#5484) next »