#
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 ...
|
#
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.
|
#
a2f8c781 |
| 04-Mar-2020 |
Christoph M. Becker |
Fix #74940: DateTimeZone loose comparison always true Since `DateTimeZone` does not implement a `compare_objects` handler, nor has any properties, two `DateTimeZone` instances always com
Fix #74940: DateTimeZone loose comparison always true Since `DateTimeZone` does not implement a `compare_objects` handler, nor has any properties, two `DateTimeZone` instances always compare as being equal, even if they designate totally different timezones. Even worse, after calling `var_dump()` on these objects, the actual comparison may yield a correct result. We therefore introduce a `compare_objects` handlers, which prevents different behavior before/after `var_dump()`, and which allows us to clearly define the intended semantics.
show more ...
|
#
d70058a1 |
| 18-Mar-2020 |
Nate Brunette |
Fix #79396: DateTime hour incorrect during DST jump forward When you attempt to set the time to a non-existent time occuring during a DST jump forward, the hour does not move forward cor
Fix #79396: DateTime hour incorrect during DST jump forward When you attempt to set the time to a non-existent time occuring during a DST jump forward, the hour does not move forward correctly.
show more ...
|
#
58b17906 |
| 03-Feb-2020 |
Nikita Popov |
Apply tidy formatting Mostly reindent PHP scripts to spaces.
|
#
01d30f88 |
| 30-Jan-2020 |
Nikita Popov |
Fix DatePeriod property handling with indirect modification We do need to implement get_property_ptr_ptr to make arrays work correctly.
|
#
494615fc |
| 30-Jan-2020 |
Nikita Popov |
Fix leak in DateTimeImmutable::modify()
|
#
b48f2625 |
| 23-Dec-2019 |
Christoph M. Becker |
Fix #79015: undefined-behavior in php_date.c We check that the given microsecond fraction is in the valid range [0, 1000000[, and otherwise mark it as invalid. We also drop the usel
Fix #79015: undefined-behavior in php_date.c We check that the given microsecond fraction is in the valid range [0, 1000000[, and otherwise mark it as invalid. We also drop the useless do loop; a plain block is sufficient here.
show more ...
|
Revision tags: php-7.3.13RC1, php-7.2.26RC1, php-7.4.0, php-7.2.25, php-7.3.12, php-7.4.0RC6, php-7.3.12RC1, php-7.2.25RC1, php-7.4.0RC5 |
|
#
89c327f8 |
| 25-Oct-2019 |
Christoph M. Becker |
Fix #78751: Serialising DatePeriod converts DateTimeImmutable When getting the properties of a DatePeriod instance we have to retain the proper classes, and when restoring a DatePeriod i
Fix #78751: Serialising DatePeriod converts DateTimeImmutable When getting the properties of a DatePeriod instance we have to retain the proper classes, and when restoring a DatePeriod instance we have to cater to DateTimeImmutable instances as well.
show more ...
|
Revision tags: php-7.1.33, php-7.2.24, php-7.3.11, php-7.4.0RC4, php-7.3.11RC1, php-7.2.24RC1, php-7.4.0RC3, php-7.2.23, php-7.3.10, php-7.4.0RC2 |
|
#
d2cde0bf |
| 16-Sep-2019 |
m.yakunin |
Fix #70153 \DateInterval incorrectly unserialized Added a separate macro for reading 'days' property, so that bool(false) is correctly converted to the proper internal representation.
|
#
e3255a4f |
| 18-Sep-2019 |
CJDennis |
Fix typo `sizeof("data")-1` and `sizeof("date")-1` are both 4, so no change in behaviour
|
Revision tags: php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1, php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1 |
|
#
fc17bfaa |
| 08-Aug-2019 |
Nikita Popov |
Fixed bug #78383
|
Revision tags: php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1, php-7.2.21RC1, php-7.3.8RC1, php-7.4.0alpha3, php-7.3.7, php-7.2.20, php-7.4.0alpha2, php-7.3.7RC3 |
|
#
599b94ff |
| 19-Jun-2019 |
Joe Watkins |
export php_time
|
#
65067dff |
| 18-Jun-2019 |
Joe Watkins |
Resolve discrepencies between second value yielded by gettimeofday and time, fixes #69044
|
Revision tags: php-7.3.7RC2, php-7.2.20RC2, php-7.4.0alpha1, php-7.3.7RC1, php-7.2.20RC1 |
|
#
457392fa |
| 05-Jun-2019 |
Dmitry Stogov |
Cheaper checks for exceptions thrown from __toString()
|
Revision tags: php-7.2.19, php-7.3.6, php-7.1.30, php-7.2.19RC1, php-7.3.6RC1, php-7.1.29, php-7.2.18, php-7.3.5, php-7.2.18RC1, php-7.3.5RC1, php-7.2.17, php-7.3.4, php-7.1.28, php-7.3.4RC1, php-7.2.17RC1, php-7.1.27, php-7.3.3, php-7.2.16 |
|
#
a31f4642 |
| 26-Feb-2019 |
Nikita Popov |
Allow exceptions in __toString() RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error excep
Allow exceptions in __toString() RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
show more ...
|
Revision tags: php-7.3.3RC1, php-7.2.16RC1, php-7.2.15, php-7.3.2, php-7.2.15RC1, php-7.3.2RC1, php-5.6.40, php-7.1.26, php-7.3.1, php-7.2.14, php-7.2.14RC1, php-7.3.1RC1, php-5.6.39, php-7.1.25, php-7.2.13, php-7.0.33, php-7.3.0, php-7.1.25RC1, php-7.2.13RC1, php-7.3.0RC6, php-7.1.24, php-7.2.12, php-7.3.0RC5, php-7.1.24RC1, php-7.2.12RC1, php-7.3.0RC4, php-7.1.23, php-7.2.11, php-7.3.0RC3, php-7.1.23RC1, php-7.2.11RC1, php-7.3.0RC2, php-5.6.38, php-7.1.22, php-7.3.0RC1, php-7.2.10, php-7.0.32, php-7.1.22RC1, php-7.3.0beta3, php-7.2.10RC1, php-7.1.21, php-7.2.9, php-7.3.0beta2, php-7.1.21RC1, php-7.3.0beta1, php-7.2.9RC1, php-5.6.37, php-7.1.20, php-7.3.0alpha4, php-7.0.31, php-7.2.8, php-7.1.20RC1, php-7.2.8RC1, php-7.3.0alpha3, php-7.3.0alpha2, php-7.1.19, php-7.2.7, php-7.1.19RC1, php-7.3.0alpha1, php-7.2.7RC1, php-7.1.18, php-7.2.6, php-7.2.6RC1, php-7.1.18RC1, php-5.6.36, php-7.2.5, php-7.1.17, php-7.0.30, php-7.1.17RC1, php-7.2.5RC1, php-5.6.35, php-7.0.29, php-7.2.4, php-7.1.16, php-7.1.16RC1, php-7.2.4RC1, php-7.1.15, php-5.6.34, php-7.2.3, php-7.0.28 |
|
#
dc586bff |
| 20-Feb-2018 |
Craig Duncan |
Ensure the internal properties cannot be overwritten
|
#
3bd5b836 |
| 29-May-2019 |
Nikita Popov |
Specify get_property_ptr_ptr handler for DatePeriod This handler is required on 7.4. Just return NULL from it to fall back to read_property.
|
#
83804519 |
| 28-May-2019 |
Dmitry Stogov |
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
|
#
3cfbbf29 |
| 18-Apr-2019 |
Nikita Popov |
Make DateInterval objects uncomparable Arbitrary DateInterval objects don't have well-defined comparison semantics. Throw a warning and treat the objects as uncomparable. Suppor
Make DateInterval objects uncomparable Arbitrary DateInterval objects don't have well-defined comparison semantics. Throw a warning and treat the objects as uncomparable. Support for comparing DateInterval objects returned by DateTime::diff() may be added in the future.
show more ...
|
#
7b1a4e24 |
| 25-Mar-2019 |
Ignace Nyamagana Butera |
Fixed bug #77909: DatePeriod::__construct() with invalid recurrence count value Improve error message on invalid reccurence count Adding test when reccurence is -1
|
#
c708c4b4 |
| 08-Apr-2019 |
Nikita Popov |
Avoid time(NULL) call if explicit timestamp given As suggested by Benjamin Coutu.
|
#
a573c0e9 |
| 18-Mar-2019 |
Nikita Popov |
Fix unused variable warning
|
#
ab07bc1f |
| 17-Mar-2019 |
Derick Rethans |
Fixed 7.2 compat issue
|