Created
January 17, 2023 11:47
-
-
Save ajbonner/c662bb7d4011ad5101c82957a71d2a82 to your computer and use it in GitHub Desktop.
Fix PHP GH Issue 10218 < PHP 8.2.1 DateTimeZone cannot parse + abbreviation in Timezones
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff -ruN php-8.2.1/ext/date/lib/parse_date.c php-8.2.1-gh10218/ext/date/lib/parse_date.c | |
--- php-8.2.1/ext/date/lib/parse_date.c 2023-01-03 13:40:55.000000000 -0500 | |
+++ php-8.2.1-gh10218/ext/date/lib/parse_date.c 2023-01-17 06:37:01.121532677 -0500 | |
@@ -787,7 +787,7 @@ | |
(**ptr >= 'A' && **ptr <= 'Z') || | |
(**ptr >= 'a' && **ptr <= 'z') || | |
(**ptr >= '0' && **ptr <= '9') || | |
- **ptr == '/' || **ptr == '_' || **ptr == '-' | |
+ **ptr == '/' || **ptr == '_' || **ptr == '-' || **ptr == '+' | |
) { | |
++*ptr; | |
} | |
diff -ruN php-8.2.1/ext/date/lib/parse_date.re php-8.2.1-gh10218/ext/date/lib/parse_date.re | |
--- php-8.2.1/ext/date/lib/parse_date.re 2023-01-03 13:40:55.000000000 -0500 | |
+++ php-8.2.1-gh10218/ext/date/lib/parse_date.re 2023-01-17 06:37:42.110215249 -0500 | |
@@ -785,7 +785,7 @@ | |
(**ptr >= 'A' && **ptr <= 'Z') || | |
(**ptr >= 'a' && **ptr <= 'z') || | |
(**ptr >= '0' && **ptr <= '9') || | |
- **ptr == '/' || **ptr == '_' || **ptr == '-' | |
+ **ptr == '/' || **ptr == '_' || **ptr == '-' || **ptr == '+' | |
) { | |
++*ptr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment