Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51106 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 70891 invoked from network); 21 Dec 2010 16:15:38 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 21 Dec 2010 16:15:38 -0000 Authentication-Results: pb1.pair.com smtp.mail=rquadling@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=rquadling@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 209.85.216.42 as permitted sender) DomainKey-Status: bad X-DomainKeys: Ecelerity dk_validate implementing draft-delany-domainkeys-base-01 X-PHP-List-Original-Sender: rquadling@gmail.com X-Host-Fingerprint: 209.85.216.42 mail-qw0-f42.google.com Received: from [209.85.216.42] ([209.85.216.42:52761] helo=mail-qw0-f42.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id C0/67-33535-6A2D01D4 for ; Tue, 21 Dec 2010 11:15:38 -0500 Received: by qwj8 with SMTP id 8so4121587qwj.29 for ; Tue, 21 Dec 2010 08:15:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:reply-to :in-reply-to:references:from:date:message-id:subject:to:cc :content-type:content-transfer-encoding; bh=VN7ucmTTKnmYGDB+XmTXd3630f9OXBvPbqQek8QJgUs=; b=vRRB2FEz+n4PSjHZTkjHsiOBvrLikcq0HcQY71XcYEXqKr45LqGgmNoxzF49M6Jt0h vTkx+BVW3B8MU/uVAeewraPT3SnXuRz8cVu3UiXoWch+4GxxtHBTKS9Iag2AAuBZBTt8 8R2oFXtWsRkjSiFbhO9QZZFNLC7ozDkT9En3M= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:reply-to:in-reply-to:references:from:date:message-id :subject:to:cc:content-type:content-transfer-encoding; b=sBT5O+69XEw2ss+MO0IWrO0ePxfIi7Z2z1IA/o/LWJ3wSvkp3Fig2/WMABIjN7YkFJ GbtHwfV/Ji+HL46Ashz6Ezf81l42KDMgaQDZqHdEFtF6tIWQ2o6wNAQGoa5Hd+oAnvE+ 6NUHUM8Ygh+4XBYcxXhKEhChvbZxTbsJ7qSPo= Received: by 10.229.190.204 with SMTP id dj12mr5122669qcb.101.1292948132562; Tue, 21 Dec 2010 08:15:32 -0800 (PST) MIME-Version: 1.0 Received: by 10.229.100.130 with HTTP; Tue, 21 Dec 2010 08:15:12 -0800 (PST) Reply-To: RQuadling@googlemail.com In-Reply-To: References: Date: Tue, 21 Dec 2010 16:15:12 +0000 Message-ID: To: Michael Morris Cc: internals@lists.php.net Content-Type: text/plain; charset=UTF-8 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: rquadling@gmail.com (Richard Quadling) On 21 December 2010 16:00, Michael Morris wrote: > Uhm, If bit 0 is set to 0, and all the higher bits are also set to 0, the= n > the total value of the field is 0. > > Under this scheme bit 0 is the legacy mode bit. =C2=A0Turn it off and PHP= will > parse tags according to historical behavior and respects the asp_tags and > short_open_tags flag. =C2=A0Turn it on and those behaviors go away. =C2= =A0The weird > part about this particular bit is you have to turn it on in order to turn > something off. I don't like doing that, but I don't see another way to ke= ep > backwards compatibility since PHP should act as it currently does if this > setting isn't set or is left at '0'. Would it not be feasible to drop asp_tags and short_open_tags, replacing them with the new entry and have the default value of the entry set so that it is corresponds to the default values of the asp_tags and short_open_tags? As the default (based upon php.ini-development and php.ini-production) is to set asp_tags and short_open_tags to off, it would seem that a new ini entry, replacing the older tags, doesn't need to worry about the value in the recommended/default position. Alternatively, could the default value (for when there isn't one defined in a current ini file) simply be based upon whatever is set for asp_tags and short_open_tags? Essentially, subsuming the older settings into the new one and allowing a sysadmin/developer to set the value if they want to. I don't think it would be necessary to support the old style settings if the change was done at a major version, though asp_tags and short_open_tags could be marked as deprecated in the next minor release. --=20 Richard Quadling Twitter : EE : Zend @RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY