Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51254 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 90757 invoked from network); 11 Jan 2011 22:03:23 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 11 Jan 2011 22:03:23 -0000 Authentication-Results: pb1.pair.com header.from=dmgx.michael@gmail.com; sender-id=pass; domainkeys=bad Authentication-Results: pb1.pair.com smtp.mail=dmgx.michael@gmail.com; spf=pass; sender-id=pass Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.54 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: dmgx.michael@gmail.com X-Host-Fingerprint: 74.125.82.54 mail-ww0-f54.google.com Received: from [74.125.82.54] ([74.125.82.54:65521] helo=mail-ww0-f54.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id 6B/60-20658-9A3DC2D4 for ; Tue, 11 Jan 2011 17:03:22 -0500 Received: by wwb31 with SMTP id 31so26042071wwb.11 for ; Tue, 11 Jan 2011 14:03:19 -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:content-type; bh=kkrrdYpNauOMJkgUTEC89liuwQ/lyHwja+63yRVQdHo=; b=kXmak0WBJPkE8KFc9CwbO9m/ZU6VsIvB8S7DmcFPa1K2ZzvIFgmX/5MMTHaJT/weRq l9UlHfbrakx7cYFyIIk7Yuggyey0/ivF53inWuQ+5FJ2hL/XV0oiRpTyRJ/HifRG7lUa ovTxC3dO0zAZ83TRZj5H6Z97rd/r7vtGHnS1k= 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 :content-type; b=Ru0+o4AKo9tQ/pekjGr2Bo+QdDMqxbMdyFnaLXvr9OjNcPr5MrZFJvyD5B7HuT4+o3 0NhJvoelqX0KTCIEMuxUFJu0Ww3yrxipK/SDu1sm8lifIB5yoxi/IjyUZ2juoe7TLc9v Ugm9ExaKVXJvI/Y6xOqNJD+FJpRZVgvrjsEh4= MIME-Version: 1.0 Received: by 10.216.172.15 with SMTP id s15mr3323379wel.70.1294783398828; Tue, 11 Jan 2011 14:03:18 -0800 (PST) Received: by 10.216.45.148 with HTTP; Tue, 11 Jan 2011 14:03:18 -0800 (PST) In-Reply-To: References: Date: Tue, 11 Jan 2011 17:03:18 -0500 Message-ID: To: internals@lists.php.net Content-Type: multipart/alternative; boundary=0016e65a08608c5a630499994066 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: dmgx.michael@gmail.com (Michael Morris) --0016e65a08608c5a630499994066 Content-Type: text/plain; charset=ISO-8859-1 Bumping this after about a 3 week lull. How would I go about adding this to the wiki?? On Tue, Dec 21, 2010 at 11:43 AM, Michael Morris wrote: > That would make for an easier situation. If we don't worry about legacy > for a moment that would give us this cleaner bitfield. > > Bit > 0 -- Standard tags toggle > 1 -- Short tags toggle > 2 -- ASP tags toggle > 3 -- Script tags toggle > 4 -- Short echo toggle. > > For backwards compat ship with bits 0 and 3 set on. The existing short tags > mode is bits 1 and 4 on. If all the bits are turned off then we have the > PHP_TAGS_NONE setting. In that mode the engine must assume the whole file is > going to be PHP code since there are no tags to look for. > > I honestly like this best of what has been suggested so far, BUT the need > to adjust settings after upgrade is a major concern. Admins who never > enabled asp or short tags to begin with wouldn't notice the settings going > away, and those that have I would expect to be savvy enough to transfer the > setting change themselves. > > Another possbility is to have PHP set tag_style according to whether it > sees short_open_tags and asp_tags in the ini file. If either of them are > on, and tag_style wasn't explicitly set, then php will set tag style to the > values it must have to mimic the intent of the setting. If tag_style is > explicitly set then it wins out - but a deprecated notice gets thrown to > alert the user that they have both tag_style set and short_open_tags and/or > asp_tags set on. > > If an htaccess or httpd.conf directive explicitly calls for short_tags or > asp_tags after tag_style was explicitly set a warning of some sort is thrown > informing the user that they must switch that declaration to one compatible > with the php.ini file. Ditto for sets occurring at runtime with one > exception - if the user specifies tag style from the include or require > statement itself this shouldn't raise any error. > > (That there's no comment on the adding of the second param to those > function as of yet concerns me a little - it is somewhat key to the > proposal.) > > Anyway, the trickiest part of this is balancing the past with the future. > > > --0016e65a08608c5a630499994066--