summaryrefslogtreecommitdiff
path: root/ext/date/tests
Commit message (Collapse)AuthorAgeFilesLines
* Fix #78751: Serialising DatePeriod converts DateTimeImmutableChristoph M. Becker2019-10-281-0/+16
| | | | | | 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.
* Fix #70153 \DateInterval incorrectly unserializedm.yakunin2019-10-184-3/+17
| | | | | Added a separate macro for reading 'days' property, so that bool(false) is correctly converted to the proper internal representation.
* Add a test for bug #65672Craig Duncan2019-05-301-0/+44
|
* Ensure the internal properties cannot be overwrittenCraig Duncan2019-05-301-12/+12
|
* Add tests for DatePeriod propertiesCraig Duncan2019-05-292-0/+83
|
* Fixed bug #77909: DatePeriod::__construct() with invalid recurrence count valueIgnace Nyamagana Butera2019-04-171-0/+19
| | | | | | Improve error message on invalid reccurence count Adding test when reccurence is -1
* Fixed bug #75113: Added DatePeriod::getRecurrences() method.Ignace Nyamagana Butera2019-03-171-0/+16
|
* Fixed bug #50020 (DateInterval:createDateFromString() silently fails)Derick Rethans2019-02-282-35/+13
|
* Update tests due to data changes in tzdata 2018iDerick Rethans2019-01-073-15/+15
|
* Fixed bug #77097 (DateTime::diff gives wrong diff when the actual diff is ↵Derick Rethans2018-11-281-0/+33
| | | | less than 1 second) by upgrading to timelib 2017.09
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1579-83/+53
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in *.phptPeter Kokot2018-10-14343-1035/+1035
|
* Merge branch 'PHP-7.1' into PHP-7.2Christoph M. Becker2018-10-082-1/+50
|\ | | | | | | | | * PHP-7.1: Fix #75851: Year component overflow with date formats "c", "o", "r" and "y"
| * Fix #75851: Year component overflow with date formats "c", "o", "r" and "y"Adam Saponara2018-10-082-1/+50
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2018-06-121-0/+16
|\ \ | |/ | | | | | | * PHP-7.1: Fixed bug #76462 Undefined property: DateInterval::$f
| * Fixed bug #76462 Undefined property: DateInterval::$fAnatol Belski2018-06-121-0/+16
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Joe2018-02-122-16/+50
|\ \ | |/ | | | | | | * PHP-7.1: Fixed bug #68406 calling var_dump on a DateTimeZone object modifies it
| * Fixed bug #68406 calling var_dump on a DateTimeZone object modifies itjhdxr2018-02-122-16/+50
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Christoph M. Becker2018-02-111-0/+18
|\ \ | |/ | | | | | | * PHP-7.1: Fix #75857: Timezone gets truncated when formatted
| * Fix #75857: Timezone gets truncated when formattedGabriel Caruso2018-02-111-0/+18
| | | | | | | | Use sizeof buffer instead of hard-coded lenghts
* | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-02-101-0/+9
|\ \ | |/
| * Fixed bug #75928Pedro Lacerda2018-02-101-0/+9
| |
| * Fixed ext/date tests due to changes in Olson databaseDerick Rethans2017-11-075-126/+27
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-10-241-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: Parametrize the expected value to avoid platform false positives
| * Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-241-1/+1
| |\ | | | | | | | | | | | | * PHP-7.0: Parametrize the expected value to avoid platform false positives
| | * Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2017-10-241-1/+1
| | |\ | | | | | | | | | | | | | | | | * PHP-5.6: Parametrize the expected value to avoid platform false positives
| | | * Parametrize the expected value to avoid platform false positivesAnatol Belski2017-10-241-1/+1
| | | |
* | | | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-10-241-1/+1
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | * PHP-7.1: Fixed bug #75055 Out-Of-Bounds Read in timelib_meridian() Apply upstream patch for CVE-2016-1283
| * | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-241-1/+1
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | * PHP-7.0: Fixed bug #75055 Out-Of-Bounds Read in timelib_meridian() Apply upstream patch for CVE-2016-1283
| | * | Merge branch 'PHP-5.6' into PHP-7.0Anatol Belski2017-10-241-1/+1
| | |\ \ | | | |/ | | | | | | | | | | | | | | | | * PHP-5.6: Fixed bug #75055 Out-Of-Bounds Read in timelib_meridian() Apply upstream patch for CVE-2016-1283
| | | * Fixed bug #75055 Out-Of-Bounds Read in timelib_meridian()Anatol Belski2017-10-241-1/+1
| | | |
* | | | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-10-091-0/+16
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.1: Fix array access on undeclared properties in DateInterval
| * | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-091-0/+16
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.0: Fix array access on undeclared properties in DateInterval
| | * | Fix array access on undeclared properties in DateIntervalAnatol Belski2017-10-091-0/+16
| | | |
| * | | Do the revert properly, and put back fraction support in 7.1Derick Rethans2017-08-166-60/+137
| | | |
| * | | Merge branch 'PHP-7.0' into PHP-7.1Derick Rethans2017-08-1628-816/+838
| |\ \ \ | | |/ /
| | * | Revert "Upgrade timelib to 2017.05beta7"Derick Rethans2017-08-1628-816/+838
| | | | | | | | | | | | | | | | This reverts commit bdd56f31078bf1f34341943603cf6aaa72e0db5c.
| | * | Upgrade timelib to 2017.05beta7Derick Rethans2017-08-1528-838/+816
| | | |
* | | | fix bug #75222 DateInterval microseconds property always 0jhdxr2017-09-271-0/+17
| | | |
* | | | Fixed 32-bit tests as well.Derick Rethans2017-08-162-19/+19
| | | |
* | | | Merge branch 'PHP-7.1' into PHP-7.2Derick Rethans2017-08-1528-880/+781
|\ \ \ \ | |/ / /
| * | | Merged PHP-7.0 by hand due to conflicts.Derick Rethans2017-08-1528-880/+781
| | | |
* | | | Merge branch 'PHP-7.1' into PHP-7.2Anatol Belski2017-08-021-0/+22
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.1: Fixed bug #75002 Null Pointer Dereference in timelib_time_clone
| * | | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-08-021-0/+22
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.0: Fixed bug #75002 Null Pointer Dereference in timelib_time_clone
| | * | Fixed bug #75002 Null Pointer Dereference in timelib_time_cloneDerick Rethans2017-08-021-0/+22
| | | |
* | | | Merge branch 'PHP-7.1'Joe Watkins2017-07-101-0/+17
|\ \ \ \ | |/ / / | | | | | | | | | | | | * PHP-7.1: Fixed bug #74852 (property_exists returns true on unknown DateInterval property)
| * | | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-07-101-0/+17
| |\ \ \ | | |/ / | | | | | | | | | | | | * PHP-7.0: Fixed bug #74852 (property_exists returns true on unknown DateInterval property)
| | * | Fixed bug #74852 (property_exists returns true on unknown DateInterval property)jhdxr2017-07-101-0/+17
| | | |
* | | | Merge branch 'PHP-7.1'Stanislav Malyshev2017-07-041-2/+2
|\ \ \ \ | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.1: Improve fix for #74145 Fix wddx Fix tests Fixed bug #74111 Fix bug #74603 - use correct buffer size Fix bug #74651 - check EVP_SealInit as it can return -1 Update NEWS Fix bug #74087 Fixed parsing of strange formats with mixed month/day and time strings Fix bug #74145 - wddx parsing empty boolean tag leads to SIGSEGV Fixed bug #74111 Fix #74435: Buffer over-read into uninitialized memory Fix bug #74603 - use correct buffer size Fix bug #74651 - check EVP_SealInit as it can return -1 Update NEWS Fix bug #73807
| * | | Merge branch 'PHP-7.0' into PHP-7.1Stanislav Malyshev2017-07-041-2/+2
| |\ \ \ | | |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0: Improve fix for #74145 Fix wddx Fix tests Fixed bug #74111 Fix bug #74603 - use correct buffer size Fix bug #74651 - check EVP_SealInit as it can return -1 Update NEWS Fix bug #74087 Fixed parsing of strange formats with mixed month/day and time strings Fix bug #74145 - wddx parsing empty boolean tag leads to SIGSEGV Fixed bug #74111 Fix #74435: Buffer over-read into uninitialized memory Fix bug #74603 - use correct buffer size Fix bug #74651 - check EVP_SealInit as it can return -1 Update NEWS Fix bug #73807