Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:18496 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 66239 invoked by uid 1010); 28 Aug 2005 00:43:05 -0000 Delivered-To: ezmlm-scan-internals@lists.php.net Delivered-To: ezmlm-internals@lists.php.net Received: (qmail 66224 invoked from network); 28 Aug 2005 00:43:05 -0000 Received: from unknown (HELO lists.php.net) (127.0.0.1) by localhost with SMTP; 28 Aug 2005 00:43:05 -0000 X-Host-Fingerprint: 192.38.9.232 gw2.emini.dk Linux 2.4/2.6 Received: from ([192.38.9.232:3141] helo=gw2.emini.dk) by pb1.pair.com (ecelerity 2.0 beta r(6323M)) with SMTP id 56/B6-28235-79801134 for ; Sat, 27 Aug 2005 20:43:03 -0400 Received: from foxbox (client-289-p-2-lns.winn.dial.virgin.net [81.103.217.32]) by gw2.emini.dk (Postfix) with ESMTP id E1FF1808A7; Sun, 28 Aug 2005 02:42:56 +0200 (CEST) Message-ID: <129301c5ab69$71e31370$9cd96751@foxbox> Reply-To: "Steph" To: "Sara Golemon" , References: <42FCE0E4.604@lerdorf.com> <20050827191013.GA13783@panix.com> <4310BBD1.3030408@prohost.org> <005101c5ab53$1d977e70$6c051fac@lighthammer> Date: Sun, 28 Aug 2005 02:42:57 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Subject: Re: [PHP-DEV] PHP 6.0 Wishlist From: steph@zend.com ("Steph") Yep. I saw this happening during the PHP 5 coding contest we held last year at Zend - some people used short open tags so I had to have that 'on' in my php.ini to test, but having it 'on' screwed the entries that used XML, so I was forever switching short open tags off and on. I was supposed to prove that there was a problem in that area, at the time, having opened my mouth over this issue. I didn't actually make time to do so - but yes, I believe it's an issue. ----- Original Message ----- From: "Sara Golemon" To: Sent: Sunday, August 28, 2005 12:02 AM Subject: Re: [PHP-DEV] PHP 6.0 Wishlist > >> 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 is 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))) { > > -- > PHP Internals - PHP Runtime Development Mailing List > To unsubscribe, visit: http://www.php.net/unsub.php >