History log of /PHP-8.0/ext/date/php_date.c (Results 1 – 25 of 683)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 7b480532 17-Oct-2022 Derick Rethans

Fixed GH-9763: DateTimeZone ctr mishandles input and adds null byte if the argument is an offset larger than 100*60 minutes


# 001e7dbb 28-Jul-2022 Derick Rethans

Fixed bug #80047 (DatePeriod doesn't warn with custom DateTimeImmutable)


# 85f3a969 28-Jul-2022 Derick Rethans

Revert "Fixed #80047: DatePeriod doesn't warn with custom DateTimeImmutable"

This reverts commit 973c3f6e241227ffc14c3608c774d7636b798cec.


# 973c3f6e 24-Jun-2022 Derick Rethans

Fixed #80047: DatePeriod doesn't warn with custom DateTimeImmutable


# d5e57268 20-May-2022 Derick Rethans

Fixed bug #78139 (timezone_open accepts invalid timezone string argument).


# 6418eba1 20-May-2022 Derick Rethans

Fixed bug #74671 (DST timezone abbreviation has incorrect offset)


# dfd1d7a5 20-May-2022 Derick Rethans

Fixed bug #76963 (Null-byte injection in createFromFormat)


# 92f8f19d 05-May-2022 Derick Rethans

Fixed GH-8471: Segmentation fault when converting immutable and mutable DateTime instances created using reflection


# b461c467 26-Apr-2022 Derick Rethans

Use the new RETURN_THROWS() instead of just returning NULL


# 87f341b1 26-Apr-2022 Derick Rethans

Return early when the timezone info is NULL.

The guess_timezone function does throw an error, but throwing an error doesn't
immediate make the PHP_FUNCTION return.

This check is

Return early when the timezone info is NULL.

The guess_timezone function does throw an error, but throwing an error doesn't
immediate make the PHP_FUNCTION return.

This check is really only necessary for distributions that patch PHP's timelib
to use system tzdata, but not correct enough to account for their
implementation to guarantee to return a timezone.

show more ...


# e38d300a 14-Apr-2022 Derick Rethans

Refactor code to avoid duplication


# 24085d01 28-Mar-2022 Cody Mann

style/readability updates


# 287c8a86 06-Mar-2022 Cody Mann

GH-7979: iterator advances when checking if valid


# 866adb12 15-Oct-2021 Christoph M. Becker

Fix #81500: Interval serialization regression since 7.3.14 / 7.4.2

While it may not be desired, `DateInterval::$f` supports negative
values, at least with regard to calculations. We sti

Fix #81500: Interval serialization regression since 7.3.14 / 7.4.2

While it may not be desired, `DateInterval::$f` supports negative
values, at least with regard to calculations. We still need to guard
from assigning double values which are out of range for signed 64bit
integers (which would be undefined behavior). zend_dval_to_lval() does
this by returning `0` instead of triggering UB. This way we can avoid
setting the invalid marker, which doesn't work as expected anyway.

We must not do that only for unserialization, but also when the property
is set in the first place.

We need to adapt some of the existing tests wrt. this behavior. In
particular, we check for an arbitrary value in bug79015.phpt, to cater
to differences between 32bit and 64bit architectures.

Closes GH-7575.

show more ...


# 26b1572d 19-Jul-2021 Derick Rethans

Move date timezone cache destruction to post deactivate

Some extensions try to use the date features in their own shutdown,
most notably some logging functions. Because of that, move the

Move date timezone cache destruction to post deactivate

Some extensions try to use the date features in their own shutdown,
most notably some logging functions. Because of that, move the
cache tear down until after these resources have been cleaned up.

show more ...


Revision tags: php-8.0.0, php-7.3.25, php-7.4.13, php-8.0.0RC5, php-7.4.13RC1, php-8.0.0RC4, php-7.3.25RC1, php-7.4.12, php-8.0.0RC3, php-7.3.24, php-8.0.0RC2, php-7.4.12RC1, php-7.3.24RC1, php-7.2.34, php-8.0.0rc1, php-7.4.11, php-7.3.23
# 41b096b3 25-Sep-2020 Máté Kocsis

Promote a few forgotten warnings to exceptions

Closes GH-6211


Revision tags: php-8.0.0beta4, php-7.4.11RC1, php-7.3.23RC1, php-8.0.0beta3, php-7.4.10, php-7.3.22, php-8.0.0beta2, php-7.3.22RC1, php-7.4.10RC1, php-8.0.0beta1, php-7.4.9, php-7.2.33, php-7.3.21, php-8.0.0alpha3, php-7.4.9RC1, php-7.3.21RC1, php-7.4.8, php-7.2.32, php-8.0.0alpha2, php-7.3.20, php-8.0.0alpha1, php-7.4.8RC1, php-7.3.20RC1, php-7.4.7, php-7.3.19, php-7.4.7RC1, php-7.3.19RC1
# 95f4ee38 22-May-2020 George Peter Banyard

Add some ValueErrors to ext/date

Closes GH-5613


# 8e8a277b 14-Sep-2020 Máté Kocsis

Slightly improve error handling in DatePeriod::__construct()


# 2ee23352 04-Sep-2020 Derick Rethans

Fixed bug #80057 (DateTimeImmutable::createFromFormat() does not populate time)


# ecd986c8 31-Aug-2020 Nikita Popov

Fix build warnings after timelib update


# 5ae657b2 27-Aug-2020 Nikita Popov

Don't assert when comparing uninit DateTimeZone objects

Nothing guarantees that the objects are initialized here... just
check as usual.


# 988fc94b 27-Aug-2020 Nikita Popov

Fix leak on failed DatePeriod initialization

We need to free not only p here, but also b and e.


# e40c9d49 13-Aug-2020 Nikita Popov

Add some missing DatePeriod initialization checks


# 2965c8f8 05-Aug-2020 Nikita Popov

Prefer strtoll over atoll

Both are specified by C99, but strtoll has specified overflow
behavior while atoll does not, so prefer using it.


# a6e3ce4f 26-Jul-2020 Gregor Harlan

datetime: new format "p", same as "P" but returning "Z" for UTC


12345678910>>...28