cvs: php4 /ext/standard url_scanner_ex.c url_scanner_ex.re
| From: | Sascha Schumann | Date: | Mon, 10 Sep 2001 11:22:43 +0000 |
| Subject: | cvs: php4 /ext/standard url_scanner_ex.c url_scanner_ex.re | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-7371@lists.php.net to get a copy of this message | ||
sas Mon Sep 10 07:22:43 2001 EDT
Modified files:
/php4/ext/standard url_scanner_ex.re url_scanner_ex.c
Log:
A round of "d'ohs" for me, please.
We must not stop scanning after finding a "?", because we
need the information regarding the "#".
Index: php4/ext/standard/url_scanner_ex.re
diff -u php4/ext/standard/url_scanner_ex.re:1.40 php4/ext/standard/url_scanner_ex.re:1.41
--- php4/ext/standard/url_scanner_ex.re:1.40 Sun Sep 9 10:52:39 2001
+++ php4/ext/standard/url_scanner_ex.re Mon Sep 10 07:22:43 2001
@@ -107,7 +107,7 @@
scan:
/*!re2c
":" { smart_str_append(dest, url); return; }
- "?" { sep = separator; goto done; }
+ "?" { sep = separator; goto scan; }
"#" { bash = p - 1; goto done; }
(any\[:?#])+ { goto scan; }
*/
Index: php4/ext/standard/url_scanner_ex.c
diff -u php4/ext/standard/url_scanner_ex.c:1.43 php4/ext/standard/url_scanner_ex.c:1.44
--- php4/ext/standard/url_scanner_ex.c:1.43 Sun Sep 9 10:52:39 2001
+++ php4/ext/standard/url_scanner_ex.c Mon Sep 10 07:22:43 2001
@@ -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 @@
yy4: yych = *++YYCURSOR;
yy5:
#line 110
- { sep = separator; goto done; }
+ { sep = separator; goto scan; }
yy6: yych = *++YYCURSOR;
yy7:
#line 111