Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:51653 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 81246 invoked from network); 10 Mar 2011 14:52:15 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 10 Mar 2011 14:52:15 -0000 Authentication-Results: pb1.pair.com smtp.mail=dmgx.michael@gmail.com; spf=pass; sender-id=pass Authentication-Results: pb1.pair.com header.from=dmgx.michael@gmail.com; sender-id=pass; domainkeys=bad Received-SPF: pass (pb1.pair.com: domain gmail.com designates 74.125.82.170 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.170 mail-wy0-f170.google.com Received: from [74.125.82.170] ([74.125.82.170:41323] helo=mail-wy0-f170.google.com) by pb1.pair.com (ecelerity 2.1.1.9-wez r(12769M)) with ESMTP id E3/A0-11443-E95E87D4 for ; Thu, 10 Mar 2011 09:52:14 -0500 Received: by wyb34 with SMTP id 34so1459174wyb.29 for ; Thu, 10 Mar 2011 06:52:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=4XG4LIsQ86kNN/+afTTsaxwyItOcPILN0sY8Av1+VcU=; b=p1jaID4lKrW1MlCN9Ba3QRwVgSxJ+NhC6PCiIBek8g05t+q90/yvILyOq6svi6BLnu F9C3XwNiV5UatTANb9r1wxNU130Ijhl0s8Q0uCM5bDc4s7YH/Iu1hmboBa/b/lQAam/A fp2v0wJLyiWu8SBryvkmXs59Xnb4vO5pwBjBc= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=r485yQ0UgEXQ2APbdOUsKLOaXzpr/1i04/dkI83aHaVtgJe7kL+RAYHQh/tMIlfmso Tb1FneLHUOlTdc2P8XxtG2CV6jK0W5f0dnbVFQdZysZdxEXbLzFzINNeB43bi1ei40/J /7wAvvfN6A0ZK/WCBnxhNToZZHNMpM+YR/1gw= MIME-Version: 1.0 Received: by 10.216.19.133 with SMTP id n5mr5806768wen.83.1299768731173; Thu, 10 Mar 2011 06:52:11 -0800 (PST) Received: by 10.216.86.14 with HTTP; Thu, 10 Mar 2011 06:52:11 -0800 (PST) Date: Thu, 10 Mar 2011 09:52:11 -0500 Message-ID: To: PHP Internals List Content-Type: multipart/alternative; boundary=0016368e3059830230049e21fd72 Subject: [PHP-DEV] RFC Dynamic Tag Styles, and No Tags From: dmgx.michael@gmail.com (Michael Morris) --0016368e3059830230049e21fd72 Content-Type: text/plain; charset=ISO-8859-1 About two months ago I placed an RFC to the list on this and we had a pretty good conversation on it. I've started the process of brushing my C skills up to the this task. Before I begin with this I'd like to review this one more time - I made some changes from the original proposal. Since the original thread is now 2 months gone I've chosen to start anew. So here goes... This patch makes it possible for the programmer to more directly configure which tags are used to delimit PHP code in PHP files. It will also permit the programmer to choose to work without tags at all and treat the whole file as a php block. I'm hoping to pick up some speed in this instance since the byte code compiler won't need to worry with mode switching in that case. The change involves one new ini directive - tag_style and four new constants - PHP_TAGS_STANDARD, PHP_TAGS_SHORT, PHP_TAGS_ASP, PHP_TAGS_NONE. The value of the directive is this bitfield. Bit Tags 0 4 6 <% 7 <%= 8 %> 9