File php-CVE-2017-11145.patch of Package php5.openSUSE_Leap_42.3_Update
diff --git a/ext/date/lib/parse_date.re b/ext/date/lib/parse_date.re
index 79dabe4..1bb1cd7 100644
--- a/ext/date/lib/parse_date.re
+++ b/ext/date/lib/parse_date.re
@@ -382,6 +382,9 @@ static timelib_sll timelib_meridian(char **ptr, timelib_sll h)
{
timelib_sll retval = 0;
+ if (**ptr == '\0') {
+ return 0;
+ }
while (!strchr("AaPp", **ptr)) {
++*ptr;
}