Skip to content

Commit cfbfc1b

Browse files
committed
Revert "Upgrade timelib to 2022.16"
This reverts commit e208cd8.
1 parent e208cd8 commit cfbfc1b

3 files changed

Lines changed: 7 additions & 16 deletions

File tree

NEWS

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@ PHP NEWS
22
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
33
?? ??? ????, PHP 8.3.31
44

5-
- Date:
6-
. Update timelib to 2022.15. (Derick)
75

86
15 Jan 2026, PHP 8.3.30
97

ext/date/lib/parse_date.re

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -169,14 +169,7 @@ static const timelib_tz_lookup_table timelib_timezone_utc[] = {
169169
};
170170

171171
#if defined(_POSIX_TZNAME_MAX)
172-
/* Solaris exposes _POSIX_TZNAME_MAX = 3 unless _XPG6 is defined.
173-
* That is too small for real-world timezone abbreviations ("EDT", "CEST", ...).
174-
*/
175-
# if defined(__sun__) && _POSIX_TZNAME_MAX < 6
176-
# define MAX_ABBR_LEN 6
177-
# else
178-
# define MAX_ABBR_LEN _POSIX_TZNAME_MAX
179-
# endif
172+
# define MAX_ABBR_LEN _POSIX_TZNAME_MAX
180173
#elif defined(TZNAME_MAX)
181174
# define MAX_ABBR_LEN TZNAME_MAX
182175
#else
@@ -2020,10 +2013,10 @@ timelib_time *timelib_strtotime(const char *s, size_t len, timelib_error_contain
20202013
in.errors->error_messages = NULL;
20212014

20222015
if (len > 0) {
2023-
while (isspace((unsigned char)*s) && s < e) {
2016+
while (isspace(*s) && s < e) {
20242017
s++;
20252018
}
2026-
while (isspace((unsigned char)*e) && e > s) {
2019+
while (isspace(*e) && e > s) {
20272020
e--;
20282021
}
20292022
}

ext/date/lib/timelib.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
/*
22
* The MIT License (MIT)
33
*
4-
* Copyright (c) 2015-2026 Derick Rethans
4+
* Copyright (c) 2015-2025 Derick Rethans
55
* Copyright (c) 2018,2021 MongoDB, Inc.
66
*
77
* Permission is hereby granted, free of charge, to any person obtaining a copy
@@ -30,9 +30,9 @@
3030
# include "timelib_config.h"
3131
#endif
3232

33-
#define TIMELIB_VERSION 202215
34-
#define TIMELIB_EXTENDED_VERSION 20221501
35-
#define TIMELIB_ASCII_VERSION "2022.15"
33+
#define TIMELIB_VERSION 202214
34+
#define TIMELIB_EXTENDED_VERSION 20221401
35+
#define TIMELIB_ASCII_VERSION "2022.14"
3636

3737
#include <stdlib.h>
3838
#include <stdbool.h>

0 commit comments

Comments
 (0)