Nikita Popov
cc58347105
Merge branch 'PHP-7.4' into PHP-8.0
...
* PHP-7.4:
XFAIL test broken by timelib update
2020-10-09 14:05:33 +02:00
Nikita Popov
229eb15f0e
Merge branch 'PHP-7.3' into PHP-7.4
...
* PHP-7.3:
XFAIL test broken by timelib update
2020-10-09 14:05:23 +02:00
Nikita Popov
5018581410
XFAIL test broken by timelib update
...
I was expecting this to get fixed quickly, but it didn't.
XFAIL for now.
2020-10-09 14:04:47 +02:00
Derick Rethans
2180e882f3
Updated to version 2020.2 (2020b)
2020-10-08 15:19:48 +01:00
Derick Rethans
950157942e
Updated to version 2020.2 (2020b)
2020-10-08 15:19:47 +01:00
Derick Rethans
14d231bd16
Updated to version 2020.2 (2020b)
2020-10-08 15:19:46 +01:00
Derick Rethans
088d284d9f
Updated to version 2020.2 (2020b)
2020-10-08 15:05:40 +01:00
Derick Rethans
c8929dc17e
Updated to version 2020.2 (2020b)
2020-10-08 15:05:39 +01:00
Derick Rethans
90a5d7c2ad
Updated to version 2020.2 (2020b)
2020-10-08 15:05:38 +01:00
Nikita Popov
25f1c405ff
Update ext/standard parameter names
...
Closes GH-6214.
2020-09-29 16:49:46 +02:00
Máté Kocsis
41b096b392
Promote a few forgotten warnings to exceptions
...
Closes GH-6211
2020-09-25 12:08:15 +02:00
Nikita Popov
c5401854fc
Run tidy
...
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
2020-09-18 14:28:32 +02:00
George Peter Banyard
95f4ee38bb
Add some ValueErrors to ext/date
...
Closes GH-5613
2020-09-16 01:29:28 +02:00
Máté Kocsis
8e8a277b2f
Slightly improve error handling in DatePeriod::__construct()
2020-09-14 11:59:51 +02:00
Máté Kocsis
9975986b7e
Improve error messages mentioning parameters instead of arguments
...
Closes GH-5999
2020-09-09 10:47:43 +02:00
Derick Rethans
2ee2335249
Fixed bug #80057 (DateTimeImmutable::createFromFormat() does not populate time)
2020-09-04 15:55:08 +01:00
Nikita Popov
ecd986c879
Fix build warnings after timelib update
2020-08-31 14:28:39 +02:00
Derick Rethans
41e11a8e71
Merge branch 'PHP-7.3' into PHP-7.4
2020-08-31 12:31:44 +01:00
Derick Rethans
488e53c18b
Fixed test case
2020-08-31 12:31:23 +01:00
Derick Rethans
8ec906563c
Update timelib to 2020.02
2020-08-31 12:23:54 +01:00
Derick Rethans
0bc8785b61
Update timelib to 2020.01
2020-08-31 12:03:08 +01:00
Derick Rethans
4a84aca68f
Merge branch 'PHP-7.4' into master
2020-08-31 11:42:20 +01:00
Derick Rethans
932b735822
Merge branch 'PHP-7.3' into PHP-7.4
2020-08-31 11:41:57 +01:00
Derick Rethans
778902db63
Update timelib to 2018.04
2020-08-31 11:41:41 +01:00
Nikita Popov
ac98ac7225
Merge branch 'PHP-7.4'
...
* PHP-7.4:
Don't assert when comparing uninit DateTimeZone objects
2020-08-27 16:20:24 +02:00
Nikita Popov
5ae657b296
Don't assert when comparing uninit DateTimeZone objects
...
Nothing guarantees that the objects are initialized here... just
check as usual.
2020-08-27 16:18:45 +02:00
Nikita Popov
988fc94bbb
Fix leak on failed DatePeriod initialization
...
We need to free not only p here, but also b and e.
2020-08-27 12:54:43 +02:00
Nikita Popov
e40c9d4918
Add some missing DatePeriod initialization checks
2020-08-13 17:23:23 +02:00
Nikita Popov
cdc4e49b84
Make strftime tests musl compatible
...
* Remove usage of strftime() in favor of date() in cases where
we are not specifically testing strftime(). We implement
date() ourselves, and as such are insulated from implementation-
defined behavior.
* Add skipif for broken strftime() %Z support. We have decided
not to work around the issue for musl using manual expansion,
as people should not be using this function anyway, and it is
slated for future deprecation.
* Don't test strftime() with invalid format specifier. The
behavior is implementation-dependent.
2020-08-13 12:02:27 +02:00
Máté Kocsis
7aacc705d0
Add many missing closing PHP tags to tests
...
Closes GH-5958
2020-08-09 22:03:36 +02:00
Máté Kocsis
046cc5e4c2
Add another round of missing parameter types to stubs
...
Closes GH-5950
2020-08-07 16:48:45 +02:00
Nikita Popov
2965c8f868
Prefer strtoll over atoll
...
Both are specified by C99, but strtoll has specified overflow
behavior while atoll does not, so prefer using it.
2020-08-05 18:40:23 +02:00
Gregor Harlan
a6e3ce4fd6
datetime: new format "p", same as "P" but returning "Z" for UTC
2020-08-03 10:44:48 +02:00
Derick Rethans
90434d7fe3
Fixed bug #60302 : DateTime::createFromFormat should new static(), not new self()
...
Also fixes similar issues for DateTimeImmutable::createFromFormat,
DateTime::createFromImmmutable, DateTime::createFromInterface,
DateTimeImmutable::createFromMutable, and
DateTimeImmutable::createFromInterface.
2020-08-03 00:43:41 +01:00
Máté Kocsis
f62ec5cf6c
Fix microtime() test
2020-07-27 13:14:21 +02:00
Derick Rethans
cdc8523300
Last pass of 'More consistent parameter names for date/time functions'
2020-07-27 11:42:13 +01:00
Derick Rethans
f66627abff
Another pass of improving ext/date argument names
2020-07-26 10:38:53 +01:00
Derick Rethans
e96e4ac726
More consistent parameter names for date/time functions
2020-07-24 11:49:01 +01:00
Nikita Popov
1d4e229ab7
Fix incorrect initialization in date_sunrise()
2020-07-21 15:33:01 +02:00
Nikita Popov
015fc638fb
Fix tests I missed before
2020-07-20 10:54:59 +02:00
Nikita Popov
81d8d60250
Add missing param to DatePeriod::__construct()
...
The signature is very overloaded, but takes at most four params,
not three.
2020-07-17 10:46:11 +02:00
Max Semenik
2b5de6f839
Remove proto comments from C files
...
Closes GH-5758
2020-07-06 21:13:34 +02:00
Nikita Popov
312201dce4
Add get_gc handle for object iterators
...
Optional handler with the same semantics as the object handler.
2020-07-01 15:17:22 +02:00
Máté Kocsis
30067894fc
Update outdated arginfo hashes
2020-06-30 16:02:11 +02:00
Máté Kocsis
e93d20ad7e
Add ZPP macros for class name or object parameters
...
Closes GH-5647
2020-06-30 11:19:30 +02:00
Fabien Villepinte
0c6d06ecfa
Replace EXPECTF when possible
...
Closes GH-5779
2020-06-29 21:31:44 +02:00
Nikita Popov
ff19ec2df3
Introduce InternalIterator
...
Userland classes that implement Traversable must do so either
through Iterator or IteratorAggregate. The same requirement does
not exist for internal classes: They can implement the internal
get_iterator mechanism, without exposing either the Iterator or
IteratorAggregate APIs. This makes them usable in get_iterator(),
but incompatible with any Iterator based APIs.
A lot of internal classes do this, because exposing the userland
APIs is simply a lot of work. This patch alleviates this issue by
providing a generic InternalIterator class, which acts as an
adapater between get_iterator and Iterator, and can be easily
used by many internal classes. At the same time, we extend the
requirement that Traversable implies Iterator or IteratorAggregate
to internal classes as well.
Closes GH-5216.
2020-06-24 15:31:41 +02:00
Máté Kocsis
b5c7a83dca
Remove unnecessary PHPDoc-alike blocks from tests
...
Closes GH-5759
2020-06-24 13:13:44 +02:00
Nikita Popov
c9b9f525a9
Include stub hash in generated arginfo files
...
The hash is used to check whether the arginfo file needs to be
regenerated. PHP-Parser will only be downloaded if this is actually
necessary.
This ensures that release artifacts will never try to regenerate
stubs and thus fetch PHP-Parser, as long as you do not modify any
files.
Closes GH-5739.
2020-06-24 09:55:19 +02:00
Nikita Popov
e42cab2088
Merge branch 'PHP-7.4'
2020-06-18 10:09:58 +02:00