Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51071 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 99410 invoked from network); 18 Dec 2010 04:27:49 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 18 Dec 2010 04:27:49 -0000 Authentication-Results: pb1.pair.com header.from=ssufficool@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=ssufficool@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.215.182 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: ssufficool@gmail.com X-Host-Fingerprint: 209.85.215.182 mail-ey0-f182.google.com Received: from [209.85.215.182] ([209.85.215.182:53445] helo=mail-ey0-f182.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id A7/40-27999-4483C0D4 for ; Fri, 17 Dec 2010 23:27:49 -0500 Received: by eyf6 with SMTP id 6so693001eyf.13 for ; Fri, 17 Dec 2010 20:27:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:in-reply-to :references:date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=8U6mnNXFz5Dx+bR4TErkQEEabM+LqAcG6BeySj8/4Vc=; b=UEyPGItTt42M+aENcaeclF914LNP5l3PtDivpjuG0TLgRJy7gcRL74Arhr3By6px/3 e5ZUMizp/gGzGpJ4SLz4+mJXjDt+4pN7Ka6gO++NsuZ8UYJNHPEN3HDkDxggRVmiOeKO jSd5dzx1rOwzUIOF8iApLg48gwa07cMU7W7tY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=N9/xOTTlqQdzxMB4CJO92BdY5ayUZ1fa/MF05lCRAPjewSAPIur6r/wKonTmAgFiWl m8Vs7TpqLO6GiaVq17kCuLmSht4dsxmVsV/K49wRR3Y2RerAigAxehtaJXDb/TTUNHak 3+eN48I5rqhJUpozUxAs/rZztjDMkcyK+Gy70= MIME-Version: 1.0 Received: by 10.213.17.6 with SMTP id q6mr1954637eba.77.1292646466102; Fri, 17 Dec 2010 20:27:46 -0800 (PST) Received: by 10.213.26.69 with HTTP; Fri, 17 Dec 2010 20:27:45 -0800 (PST) In-Reply-To: References: Date: Fri, 17 Dec 2010 20:27:45 -0800 Message-ID: To: Michael Morris Cc: PHP Internals List Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Subject: Re: [PHP-DEV] RFC: Selecting Namespaces and Tag styles at include time. ( was Re: PHP Dev RFC Selecting Namespaces and Tag styles at include time.) From: ssufficool@gmail.com (Stanley Sufficool) I would go with a maskable enumeration for multiple options support: Val Constant 0 PHP_TAGS_NONE 1 PHP_TAGS_LEGACY 2 PHP_TAGS_STANDARD 4 PHP_TAGS_SHORT 8 PHP_TAGS_SCRIPT 16 PHP_TAGS_ASP So that if I want to use mixed tags ( w= rote: > I've been giving some thought to the implication of my off the cuff addit= ion > of PHP_TAGS_NONE to the modes allowed and what should logically go with > that. If tag style can be declared in a function, it should be possible s= et > them in the configuration and at other places. Currently tag style is spr= ead > over multiple settings in the configuration - I know of two: > > asp_tags > short_open_tag > > This is problematic moving forward so I hereby suggest nipping further > proliferation in the bud and go to one configuration setting with this na= me: > > tag_style > > It's values, and their corresponding meaning: > > Val =A0Constant =A0 =A0 =A0 =A0 =A0 Effect > 0 =A0 =A0PHP_TAGS_LEGACY =A0 =A0Honor older ini tag settings such as asp_= tags > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 or short_open_tag, in all= ways behave in a > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 a manner compliant with t= he expectations of > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 any scripts that are upgr= ading. > 1 =A0 =A0PHP_TAGS_NONE =A0 =A0 =A0No tags will be permitted in the file. > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Interpreter expects the w= hole file to be > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 PHP. > 2 =A0 =A0PHP_TAGS_STANDARD =A0Enable the classic tags we all kno= w > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 and love. > 3 =A0 =A0PHP_TAGS_SHORT =A0 =A0 Use PHP short tags and . Un= like > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 Legacy behavior with shor= t_open_tag set to > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 'on' this setting will NO= T let you use > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 alongside the and > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 tags. > 4 =A0 =A0PHP_TAGS_SCRIPT =A0 =A0Script tags