logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

cvs: php4 /ext/standard url_scanner_ex.c url_scanner_ex.re: msg#00575

Subject: cvs: php4 /ext/standard url_scanner_ex.c url_scanner_ex.re
derick          Thu Apr 25 02:30:09 2002 EDT

  Modified files:              
    /php4/ext/standard  url_scanner_ex.re url_scanner_ex.c 
  Log:
  - Fix for bug 16810 (XHTML compliance)
  
  
Index: php4/ext/standard/url_scanner_ex.re
diff -u php4/ext/standard/url_scanner_ex.re:1.47 
php4/ext/standard/url_scanner_ex.re:1.48
--- php4/ext/standard/url_scanner_ex.re:1.47    Tue Mar 26 05:20:05 2002
+++ php4/ext/standard/url_scanner_ex.re Thu Apr 25 02:30:09 2002
@@ -187,6 +187,8 @@
        if (ctx->tag.len == 4 && strncasecmp(ctx->tag.c, "form", 4) == 0) {
                smart_str_appends(&ctx->result, "<input type=\"hidden\" 
name=\""); 
                smart_str_append(&ctx->result, &ctx->q_name);
+               smart_str_appends(&ctx->result, "\" id=\"");
+               smart_str_append(&ctx->result, &ctx->q_name);
                smart_str_appends(&ctx->result, "\" value=\"");
                smart_str_append(&ctx->result, &ctx->q_value);
                smart_str_appends(&ctx->result, "\" />");
Index: php4/ext/standard/url_scanner_ex.c
diff -u php4/ext/standard/url_scanner_ex.c:1.51 
php4/ext/standard/url_scanner_ex.c:1.52
--- php4/ext/standard/url_scanner_ex.c:1.51     Tue Mar 26 05:23:33 2002
+++ php4/ext/standard/url_scanner_ex.c  Thu Apr 25 02:30:09 2002
@@ -1,4 +1,4 @@
-/* Generated by re2c 0.5 on Tue Mar 26 11:22:58 2002 */
+/* Generated by re2c 0.5 on Thu Apr 25 08:29:22 2002 */
 #line 1 "url_scanner_ex.re"
 /*
   +----------------------------------------------------------------------+
@@ -247,6 +247,8 @@
        if (ctx->tag.len == 4 && strncasecmp(ctx->tag.c, "form", 4) == 0) {
                smart_str_appends(&ctx->result, "<input type=\"hidden\" 
name=\""); 
                smart_str_append(&ctx->result, &ctx->q_name);
+               smart_str_appends(&ctx->result, "\" id=\"");
+               smart_str_append(&ctx->result, &ctx->q_name);
                smart_str_appends(&ctx->result, "\" value=\"");
                smart_str_append(&ctx->result, &ctx->q_value);
                smart_str_appends(&ctx->result, "\" />");
@@ -364,17 +366,17 @@
        if(yybm[0+yych] & 128)  goto yy15;
 yy13:  yych = *++YYCURSOR;
 yy14:
-#line 263
+#line 265
        { passthru(STD_ARGS); STATE = STATE_TAG; goto state_tag; }
 yy15:  ++YYCURSOR;
        if(YYLIMIT == YYCURSOR) YYFILL(1);
        yych = *YYCURSOR;
 yy16:  if(yybm[0+yych] & 128)  goto yy15;
 yy17:
-#line 264
+#line 266
        { passthru(STD_ARGS); goto state_plain; }
 }
-#line 265
+#line 267
 
 
 state_tag:     
@@ -428,11 +430,11 @@
 yy20:  yych = *++YYCURSOR;
        goto yy25;
 yy21:
-#line 270
+#line 272
        { handle_tag(STD_ARGS); /* Sets STATE */; passthru(STD_ARGS); if (STATE 
== STATE_PLAIN) goto state_plain; else goto state_next_arg; }
 yy22:  yych = *++YYCURSOR;
 yy23:
-#line 271
+#line 273
        { passthru(STD_ARGS); goto state_plain_begin; }
 yy24:  ++YYCURSOR;
        if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -440,7 +442,7 @@
 yy25:  if(yybm[0+yych] & 128)  goto yy24;
        goto yy21;
 }
-#line 272
+#line 274
 
 
 state_next_arg_begin:
@@ -511,20 +513,20 @@
        }
 yy28:  yych = *++YYCURSOR;
 yy29:
-#line 280
+#line 282
        { passthru(STD_ARGS); handle_form(STD_ARGS); goto state_plain_begin; }
 yy30:  yych = *++YYCURSOR;
        goto yy37;
 yy31:
-#line 281
+#line 283
        { passthru(STD_ARGS); goto state_next_arg; }
 yy32:  yych = *++YYCURSOR;
 yy33:
-#line 282
+#line 284
        { --YYCURSOR; STATE = STATE_ARG; goto state_arg; }
 yy34:  yych = *++YYCURSOR;
 yy35:
-#line 283
+#line 285
        { passthru(STD_ARGS); goto state_plain_begin; }
 yy36:  ++YYCURSOR;
        if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -532,7 +534,7 @@
 yy37:  if(yybm[0+yych] & 128)  goto yy36;
        goto yy31;
 }
-#line 284
+#line 286
 
 
 state_arg:
@@ -586,11 +588,11 @@
 yy40:  yych = *++YYCURSOR;
        goto yy45;
 yy41:
-#line 289
+#line 291
        { passthru(STD_ARGS); handle_arg(STD_ARGS); STATE = STATE_BEFORE_VAL; 
goto state_before_val; }
 yy42:  yych = *++YYCURSOR;
 yy43:
-#line 290
+#line 292
        { passthru(STD_ARGS); STATE = STATE_NEXT_ARG; goto state_next_arg; }
 yy44:  ++YYCURSOR;
        if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -598,7 +600,7 @@
 yy45:  if(yybm[0+yych] & 128)  goto yy44;
        goto yy41;
 }
-#line 291
+#line 293
 
 
 state_before_val:
@@ -653,12 +655,12 @@
        if(yych == ' ') goto yy55;
        if(yych == '=') goto yy53;
 yy49:
-#line 297
+#line 299
        { --YYCURSOR; goto state_next_arg_begin; }
 yy50:  yych = *++YYCURSOR;
        goto yy54;
 yy51:
-#line 296
+#line 298
        { passthru(STD_ARGS); STATE = STATE_VAL; goto state_val; }
 yy52:  yych = *++YYCURSOR;
        goto yy49;
@@ -677,7 +679,7 @@
        case 0: goto yy49;
        }
 }
-#line 298
+#line 300
 
 
 
@@ -747,7 +749,7 @@
        yych = *(YYMARKER = ++YYCURSOR);
        if(yych != '>') goto yy74;
 yy61:
-#line 307
+#line 309
        { passthru(STD_ARGS); goto state_next_arg_begin; }
 yy62:  yyaccept = 0;
        yych = *(YYMARKER = ++YYCURSOR);
@@ -756,7 +758,7 @@
 yy63:  yych = *++YYCURSOR;
        goto yy67;
 yy64:
-#line 306
+#line 308
        { handle_val(STD_ARGS, 0, '"'); goto state_next_arg_begin; }
 yy65:  yych = *++YYCURSOR;
        goto yy61;
@@ -776,7 +778,7 @@
        }
 yy71:  yych = *++YYCURSOR;
 yy72:
-#line 305
+#line 307
        { handle_val(STD_ARGS, 1, '\''); goto state_next_arg_begin; }
 yy73:  ++YYCURSOR;
        if(YYLIMIT == YYCURSOR) YYFILL(1);
@@ -785,10 +787,10 @@
        if(yych >= '>') goto yy70;
 yy75:  yych = *++YYCURSOR;
 yy76:
-#line 304
+#line 306
        { handle_val(STD_ARGS, 1, '"'); goto state_next_arg_begin; }
 }
-#line 308
+#line 310
 
 
 stop:



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




<Prev in Thread] Current Thread [Next in Thread>