Few weeks ago, I've asked the reason why there is no <?php= ?> syntax in Zend/PHP. I got sevral reply supporting this syntax.
Is there any issue adding this syntax? If not, could anyone apply this patch? I think it also good time to get rid of <? ?> and <?= ?> syntax (at least, announce <? ?> syntax is obsolete), add <?php= ?> syntax for replacement, since PHP4.1.0 is in release process. Patch for adding <?php= ?> syntax attached. BTW, I suppose you also would like to rename php.ini-dist to php.ini-compatible (or like) and php.ini-recommended to php.ini-dist. -- Yasuo Ohgaki
Index: zend_language_scanner.l =================================================================== RCS file: /repository/Zend/zend_language_scanner.l,v retrieving revision 1.40 diff -u -r1.40 zend_language_scanner.l --- zend_language_scanner.l 2001/09/22 00:06:27 1.40 +++ zend_language_scanner.l 2001/10/25 00:16:59 @@ -938,8 +938,8 @@ } -<INITIAL>"<%="|"<?=" { - if ((yytext[1]=='%' && CG(asp_tags)) || (yytext[1]=='?' && CG(short_tags))) { +<INITIAL>"<%="|"<?="|"<?php=" { + if ((yytext[1]=='%' && CG(asp_tags)) || (yytext[1]=='?' && CG(short_tags)) || +yytext[2] == 'p') { zendlval->value.str.val = yytext; /* no copying - intentional */ zendlval->value.str.len = yyleng; zendlval->type = IS_STRING;
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]