From: Sascha Schumann Date: Mon, 10 Sep 2001 11:22:43 +0000 (+0000) Subject: A round of "d'ohs" for me, please. X-Git-Tag: PRE_SUBST_Z_MACROS~133 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2bbbec107b6d789df4262608948ca45a782b7037;p=php A round of "d'ohs" for me, please. We must not stop scanning after finding a "?", because we need the information regarding the "#". --- diff --git a/ext/standard/url_scanner_ex.c b/ext/standard/url_scanner_ex.c index 2f410b5152..074557769f 100644 --- a/ext/standard/url_scanner_ex.c +++ b/ext/standard/url_scanner_ex.c @@ -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 diff --git a/ext/standard/url_scanner_ex.re b/ext/standard/url_scanner_ex.re index 842f6c6246..bae6994633 100644 --- a/ext/standard/url_scanner_ex.re +++ b/ext/standard/url_scanner_ex.re @@ -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; } */