Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18494 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 56555 invoked by uid 1010); 27 Aug 2005 23:56:26 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 56539 invoked from network); 27 Aug 2005 23:56:26 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 27 Aug 2005 23:56:26 -0000 X-Host-Fingerprint: 195.197.172.115 gw01.mail.saunalahti.fi Linux 2.4/2.6 Received: from ([195.197.172.115:54814] helo=gw01.mail.saunalahti.fi) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id AD/36-28235-8ADF0134 for ; Sat, 27 Aug 2005 19:56:24 -0400 Received: from nest.netphobia.fi (YZCLXVIII.dsl.saunalahti.fi [85.76.34.69]) by gw01.mail.saunalahti.fi (Postfix) with ESMTP id CD4F4F0A59; Sun, 28 Aug 2005 02:56:19 +0300 (EEST) Received: from nest.netphobia.fi (nest.netphobia.fi [127.0.0.1]) by nest.netphobia.fi (8.13.1/8.13.1) with ESMTP id j7RNuNGi029866; Sun, 28 Aug 2005 02:56:23 +0300 Received: from localhost (jani@localhost) by nest.netphobia.fi (8.13.1/8.13.1/Submit) with ESMTP id j7RNuMUD029863; Sun, 28 Aug 2005 02:56:22 +0300 X-Authentication-Warning: nest.netphobia.fi: jani owned process doing -bs Date: Sun, 28 Aug 2005 02:56:22 +0300 (EEST) Reply-To: Jani Taskinen To: Sara Golemon cc: internals@lists.php.net In-Reply-To: <005101c5ab53$1d977e70$6c051fac@lighthammer> Message-ID: References: <42FCE0E4.604@lerdorf.com> <20050827191013.GA13783@panix.com> <4310BBD1.3030408@prohost.org> <005101c5ab53$1d977e70$6c051fac@lighthammer> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Subject: Re: [PHP-DEV] PHP 6.0 Wishlist From: sniper@iki.fi (Jani Taskinen) Let's just nuke all other opening tags than >> It would be nice if PHP could not get tripped up by ">> short_tags is on. >>> >> Already included, you may have seen this feature used before, > > I gather he meant making the scanner intelligent enough to see that the followed by 'xml' and just ignoring the fact that short open tags is on. I > wouldn't expect to see it happen (or want it to), but if he wants it, here's a > sloppy implementation: > > Index: Zend/zend_language_scanner.l > =================================================================== > RCS file: /repository/ZendEngine2/zend_language_scanner.l,v > retrieving revision 1.131 > diff -u -r1.131 zend_language_scanner.l > --- Zend/zend_language_scanner.l 3 Aug 2005 13:30:54 -0000 1.131 > +++ Zend/zend_language_scanner.l 27 Aug 2005 21:55:36 -0000 > @@ -1379,6 +1379,12 @@ > } > } > > +" + zendlval->value.str.val = (char *) estrndup(yytext, yyleng); > + zendlval->value.str.len = yyleng; > + zendlval->type = IS_STRING; > + return T_INLINE_HTML; > +} > > "<%="|" if ((yytext[1]=='%' && CG(asp_tags)) || (yytext[1]=='?' && > CG(short_tags))) { > > -- Donate @ http://pecl.php.net/wishlist.php/sniper