]> granicus.if.org Git - php/commitdiff
A round of "d'ohs" for me, please.
authorSascha Schumann <sas@php.net>
Mon, 10 Sep 2001 11:22:43 +0000 (11:22 +0000)
committerSascha Schumann <sas@php.net>
Mon, 10 Sep 2001 11:22:43 +0000 (11:22 +0000)
We must not stop scanning after finding a "?", because we
need the information regarding the "#".

ext/standard/url_scanner_ex.c
ext/standard/url_scanner_ex.re

index 2f410b515231bd9515e8806a405d473db9f0ecef..074557769f266f579be93a336fa3848a816b97db 100644 (file)
@@ -1,5 +1,5 @@
-/* Generated by re2c 0.5 on Sun Sep  9 16:51:59 2001 */
-#line 1 "url_scanner_ex.re"
+/* Generated by re2c 0.5 on Mon Sep 10 13:21:04 2001 */
+#line 1 "/home/sas/src/php4/ext/standard/url_scanner_ex.re"
 /*
   +----------------------------------------------------------------------+
   | PHP version 4.0                                                      |
@@ -156,7 +156,7 @@ yy3:
 yy4:   yych = *++YYCURSOR;
 yy5:
 #line 110
-       { sep = separator; goto done; }
+       { sep = separator; goto scan; }
 yy6:   yych = *++YYCURSOR;
 yy7:
 #line 111
index 842f6c62465678e7276fac6bde90e20616cbd195..bae69946333adf0fc828a55a03d2180294209518 100644 (file)
@@ -107,7 +107,7 @@ static inline void append_modified_url(smart_str *url, smart_str *dest, smart_st
 scan:
 /*!re2c
   ":"          { smart_str_append(dest, url); return; }
-  "?"          { sep = separator; goto done; }
+  "?"          { sep = separator; goto scan; }
   "#"          { bash = p - 1; goto done; }
   (any\[:?#])+         { goto scan; }
 */