Re: Fw: Any reason there is no <?php= ?> syntax?

From: Date: Fri, 12 Oct 2001 06:57:39 +0000
Subject: Re: Fw: Any reason there is no <?php= ?> syntax?
References: 1 2 3  Groups: php.dev 
Request: Send a blank email to php-dev+get-67833@lists.php.net to get a copy of this message
Yasuo Ohgaki wrote: > Here is diff enable "<?php= ?>" syntax (diff against 4.0.8-dev HEAD. > Sorry for inlined/wordwrapped, but changes are only 2 lines.) > > It works w/o any problems so far for me. Any side effects for this change? > Sorry, pasted wrong diff... Correct one is 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/12 06:10:37 @@ -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=$var ?>" synatex would be nice, since it works for any configuration. -- Yasuo Ohgaki

« previous php.dev (#67833) next »