Christoph M. Becker
1d9e716a47
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79396 : DateTime hour incorrect during DST jump forward
2020-03-19 08:51:55 +01:00
Nate Brunette
d70058a139
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.
2020-03-19 08:50:34 +01:00
Nikita Popov
01d30f880a
Fix DatePeriod property handling with indirect modification
...
We do need to implement get_property_ptr_ptr to make arrays work
correctly.
2020-01-30 13:09:47 +01:00
Nikita Popov
187f359549
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix leak in DateTimeImmutable::modify()
2020-01-30 12:17:10 +01:00
Nikita Popov
494615fcb8
Fix leak in DateTimeImmutable::modify()
2020-01-30 12:16:56 +01:00
Christoph M. Becker
40b2f82380
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #79015 : undefined-behavior in php_date.c
2020-01-03 14:32:30 +01:00
Christoph M. Becker
b48f2625b5
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.
2020-01-03 14:31:03 +01:00
Nikita Popov
8e12f04b5e
Remove DateTime class registration test
...
This test is more annoying than useful.
2019-12-16 18:57:19 +01:00
Christoph M. Becker
9e4c5db733
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #78751 : Serialising DatePeriod converts DateTimeImmutable
2019-10-28 13:09:24 +01:00
Christoph M. Becker
736cd93ef5
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #78751 : Serialising DatePeriod converts DateTimeImmutable
2019-10-28 13:08:34 +01:00
Christoph M. Becker
89c327f884
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.
2019-10-28 13:07:28 +01:00
Christoph M. Becker
81806db90b
Fix test case
...
Cf. <https://github.com/php/php-src/pull/4687 >.
2019-10-18 16:23:56 +02:00
Christoph M. Becker
197568d634
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Fix #70153 \DateInterval incorrectly unserialized
2019-10-18 15:33:25 +02:00
Christoph M. Becker
c7c7ab53ac
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Fix #70153 \DateInterval incorrectly unserialized
2019-10-18 15:32:08 +02:00
m.yakunin
d2cde0bfd3
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.
2019-10-18 15:31:14 +02:00
Fabien Villepinte
0aa3acc6c4
Fix borked SKIPIFs
2019-09-30 17:51:41 +02:00
Matteo Beccati
00dd786ba4
Fix test when default TZ is not UTC
2019-08-09 09:58:10 +02:00
Nikita Popov
fc17bfaacf
Fixed bug #78383
2019-08-08 09:55:52 +02:00
Nikita Popov
9d82a01d01
Clean up DateTimeZone::getLocation() test
...
And avoid invalid array access.
2019-07-10 11:09:41 +02:00
Derick Rethans
a60128c503
Merge branch 'PHP-7.3' into PHP-7.4
2019-06-30 15:50:55 +01:00
Derick Rethans
cc3fe3bd30
Fixed tests due to changed timezone data
2019-06-30 15:50:38 +01:00
Craig Duncan
a08b3b6d19
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
Add a test for bug #65672
Ensure the internal properties cannot be overwritten
2019-05-30 19:14:04 +01:00
Craig Duncan
370997fb5d
Merge branch 'PHP-7.2' into PHP-7.3
...
* PHP-7.2:
Add a test for bug #65672
Ensure the internal properties cannot be overwritten
2019-05-30 18:55:55 +01:00
Craig Duncan
8b53c7232e
Add a test for bug #65672
2019-05-30 18:55:42 +01:00
Craig Duncan
dc586bff36
Ensure the internal properties cannot be overwritten
2019-05-30 18:55:36 +01:00
Nikita Popov
5a0df6a414
Merge branch 'PHP-7.3' into PHP-7.4
2019-05-29 09:47:54 +02:00
Nikita Popov
de7d0256a3
Merge branch 'PHP-7.2' into PHP-7.3
2019-05-29 09:47:43 +02:00
Craig Duncan
5d67271db0
Add tests for DatePeriod properties
2019-05-29 09:47:10 +02:00
Vinicius Dias
188ece856d
Remove duplicate variables
...
Removing duplicate variables `$beginDtObj` and `$beginTimestamp`.
2019-05-12 03:02:38 +02:00
Nikita Popov
3cfbbf2956
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.
2019-04-23 13:12:06 +02:00
Vitor Mattos
c050045faa
Add test for date timestamp
...
- [date_timestamp_get] adding coverage for date_timestamp_get alias to
DateTime::getTimestamp feature at PHPRio TestFest
- [date_timestamp_get] adding coverage for date_timestamp_get basic
feature at PHPRio TestFest
- Combine tests into single file
2019-04-20 19:21:10 +02:00
Derick Rethans
4a3f64dfef
Merge branch 'PHP-7.3' into PHP-7.4
2019-04-17 09:40:28 +01:00
Derick Rethans
6088713216
Merge branch 'PHP-7.2' into PHP-7.3
2019-04-17 09:40:18 +01:00
Ignace Nyamagana Butera
7b1a4e2400
Fixed bug #77909 : DatePeriod::__construct() with invalid recurrence count value
...
Improve error message on invalid reccurence count
Adding test when reccurence is -1
2019-04-17 09:39:03 +01:00
Derick Rethans
0325e78f4f
Merge branch 'PHP-7.3' into PHP-7.4
2019-03-17 14:38:11 -04:00
Derick Rethans
7e7ef44fab
Merge branch 'PHP-7.2' into PHP-7.3
2019-03-17 14:38:04 -04:00
Ignace Nyamagana Butera
6eb83a63e1
Fixed bug #75113 : Added DatePeriod::getRecurrences() method.
2019-03-17 14:37:35 -04:00
Peter Kokot
3a857852a8
Remove HAVE_STRFTIME
...
Function strftime is part of the C89 standard [1] and current systems
don't need to check for its presence anymore.
Additionally, checks for strftime function in tests have been removed
since the PHP strftime function is now always available.
1: https://port70.net/~nsz/c/c89/c89-draft.html
2019-03-14 19:42:29 +01:00
Gabriel Caruso
6c4e2079c0
Use EXPECT when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2019-03-11 00:05:44 -03:00
Nikita Popov
94d509363d
Remove more zpp error tests
2019-03-05 11:02:31 +01:00
Nikita Popov
b26df0e395
Remove tests for zpp failure conditions
...
These tests only check zpp error conditions, so drop them per
zpp testing policy.
2019-03-05 10:22:23 +01:00
Derick Rethans
9624e87a8f
Merge branch 'PHP-7.3' into PHP-7.4
2019-02-28 13:52:33 +00:00
Derick Rethans
d63a7aa6cf
Merge branch 'PHP-7.2' into PHP-7.3
2019-02-28 13:51:10 +00:00
Derick Rethans
a890c5beb8
Fixed bug #50020 (DateInterval:createDateFromString() silently fails)
2019-02-28 13:50:35 +00:00
Nikita Popov
c0e15a3b7f
Implement fine-grained conflict handling
...
Tests can specify conflict keys, either in --CONFLICTS-- or
a per-directory CONFLICTS file. Non-conflicting tests may be run
in parallel.
2019-02-20 11:20:40 +01:00
Andrea Faulds
39792f5bb7
run-tests.php: experimental parallel testing support
2019-02-18 14:58:53 +01:00
MarkBaker
31b2dcb26c
Tests for __set_state magic method
...
Tests for __set_state magic method for DateTime, DateTimeImmutable,
DateTimeZone and DatePeriod.
2019-02-09 17:18:23 +01:00
Mark Niebergall
1253a68926
Add test for date_time_immutable invalid arguments
2019-02-09 17:05:22 +01:00
Nikita Popov
8bc663f43b
Remove zpp variation tests
2019-02-05 09:38:55 +01:00
Nikita Popov
e219ec144e
Implement typed properties
...
RFC: https://wiki.php.net/rfc/typed_properties_v2
This is a squash of PR #3734 , which is a squash of PR #3313 .
Co-authored-by: Bob Weinand <bobwei9@hotmail.com >
Co-authored-by: Joe Watkins <krakjoe@php.net >
Co-authored-by: Dmitry Stogov <dmitry@zend.com >
2019-01-11 15:49:06 +01:00