Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:5484 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 38158 invoked by uid 1010); 16 Nov 2003 00:26:28 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 38133 invoked from network); 16 Nov 2003 00:26:27 -0000 Received: from unknown (HELO blacksheep.csh.rit.edu) (129.21.60.6) by pb1.pair.com with SMTP; 16 Nov 2003 00:26:27 -0000 Received: from fury.csh.rit.edu (fury.csh.rit.edu [IPv6:2001:470:1f00:135:a00:20ff:fe8d:5399]) by blacksheep.csh.rit.edu (Postfix) with ESMTP id BB462131 for ; Sat, 15 Nov 2003 19:26:27 -0500 (EST) Received: by fury.csh.rit.edu (Postfix, from userid 37404) id A302B1323; Sat, 15 Nov 2003 19:26:27 -0500 (EST) Date: Sat, 15 Nov 2003 19:26:27 -0500 To: internals@lists.php.net Message-ID: <20031116002626.GA21928@csh.rit.edu> Mail-Followup-To: internals@lists.php.net References: <1068941694.29026.5.camel@blobule.suds> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1068941694.29026.5.camel@blobule.suds> Subject: Re: [PHP-DEV] Question about ?> bug or feature. From: jon@php.net (Jon Parise) 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. '' 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/)