Re: Fw: Any reason there is no <?php= ?> syntax?
| From: | Yasuo Ohgaki | Date: | Fri, 12 Oct 2001 04:50:58 +0000 |
| Subject: | Re: Fw: Any reason there is no <?php= ?> syntax? | ||
| References: | 1 2 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-67829@lists.php.net to get a copy of this message | ||
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?
Yasuo Ohgaki
===================================================================
--- zend_language_scanner.l 2001/09/22 00:06:27 1.40
+++ zend_language_scanner.l 2001/10/12 04:39:45
@@ -938,7 +938,7 @@
}
-<INITIAL>"<%="|"<?=" {
+<INITIAL>"<%="|"<?="|"<?php=" {
if ((yytext[1]=='%' && CG(asp_tags)) || (yytext[1]=='?'
&&
CG(short_tags))) {
zendlval->value.str.val = yytext; /* no copying -
intentional */
zendlval->value.str.len = yyleng;
--- zend_language_scanner.c.orig Fri Oct 12 11:57:32 2001
+++ zend_language_scanner.c Fri Oct 12 13:27:53 2001
@@ -4188,7 +4188,7 @@
YY_RULE_SETUP
#line 941 "./zend_language_scanner.l"
{
- if ((yytext[1]=='%' && CG(asp_tags)) || (yytext[1]=='?'
&&
CG(short_tags))) {
+ 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;