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
--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php