Re: PHP 6.0 Wishlist
| From: | Johannes Schlueter | Date: | Sun, 28 Aug 2005 10:28:00 +0000 |
| Subject: | Re: PHP 6.0 Wishlist | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-18507@lists.php.net to get a copy of this message | ||
Hi, David,
On Sunday 28 August 2005 10:18, David Kingma | jool.nl wrote:
> If you replace the te following lines:
>
>
> <INITIAL>"<?"|"<script"{WHITESPACE}+"language"{WHITESPACE}*"="{WHITESPACE}*
>("php"|"\"php\""|"\'php\'"){WHITESPACE}*">"
>{ HANDLE_NEWLINES(yytext,
> yyleng);
> if (CG(short_tags) || yyleng>2) { /* yyleng>2 means it's not <? but
> <script> */
>
>
> with:
>
> <INITIAL>"<?
>
> "|"<script"{WHITESPACE}+"language"{WHITESPACE}*"="{WHITESPACE}*("php"|"\"ph
>p\""|"\'php\'"){WHITESPACE}*">" {
>HANDLE_NEWLINES(yytext, yyleng);
> if (CG(short_tags) || yyleng>3) { /* yyleng>3 means it's not <? but
> <script> */
>
>
> (notice the space behind '?' and the length check from 2 to 3) Wouldn't
> that fix the whole problem without creating a special case for <?xml ?
Wouldn't that break <?my_great_Function(); ?>?
johannes