Máté Kocsis
adc26424aa
Deprecate calling DatePeriod::__construct() with less than 3 arguments
2023-12-04 22:27:59 +01:00
Marc Bennewitz
88f2dc6268
Added DateTime[Immutable]::createFromTimestamp / date_create_[immutable]_from_timestamp
2023-11-22 15:24:13 +00:00
Ilija Tovilo
692cea5cbc
Use zend_error_noreturn for E_ERROR consistently
...
To be clear, these already don't return. zend_error_noreturn just hints at this
fact through the ZEND_NORETURN attribute.
Closes GH-12204
2023-09-14 11:44:55 +02:00
Derick Rethans
1bddd4ef44
Merge branch 'PHP-8.2'
2023-08-10 12:11:35 +01:00
Derick Rethans
e157da11f3
Update initialisation check for new PHP-8.3 API
2023-08-09 20:12:41 +01:00
Derick Rethans
b71d2e16e6
Fix GH-11416: Crash with DatePeriod when uninitialised objects are passed in (PHP 8.2+)
2023-08-09 16:10:14 +01:00
Derick Rethans
f8b42da3a4
Merge branch 'PHP-8.2'
2023-08-09 15:39:31 +01:00
Derick Rethans
7f6e98cec7
Merge branch 'PHP-8.1' into PHP-8.2
2023-08-09 15:39:25 +01:00
Derick Rethans
4833b84854
Fix GH-11416: Crash with DatePeriod when uninitialised objects are passed in
2023-08-09 15:39:13 +01:00
Derick Rethans
82ff4c5e84
Make the new DatePeriod::createFromISO8601String method emit DateTimeImmutable objects
2023-07-25 18:43:45 +01:00
Derick Rethans
b669cb4c1b
CS
2023-07-25 18:43:45 +01:00
Máté Kocsis
9c7c0a0b93
Implement DatePeriod::createFromISO8601String()
2023-07-18 12:59:21 +02:00
Derick Rethans
783197623d
Merge branch 'PHP-8.2'
2023-06-22 19:06:21 +01:00
Derick Rethans
1b5360587e
Merge branch 'PHP-8.1' into PHP-8.2
2023-06-22 19:06:08 +01:00
Derick Rethans
0747616f84
Fixed GH-11368: Date modify returns invalid datetime
2023-06-22 17:58:19 +01:00
nielsdos
12e4628815
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-11455: Segmentation fault with custom object date properties
Revert "Fix GH-11404: DOMDocument::savexml and friends ommit xmlns="" declaration for null namespace, creating incorrect xml representation of the DOM"
2023-06-19 19:45:24 +02:00
Niels Dossche
93becab506
Fix GH-11455: Segmentation fault with custom object date properties
...
Closes GH-11473.
2023-06-19 19:42:09 +02:00
nielsdos
505a30cbbc
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-11281: DateTimeZone::getName() does not include seconds in offset
2023-05-23 18:57:09 +02:00
nielsdos
caab608d57
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11281: DateTimeZone::getName() does not include seconds in offset
2023-05-23 18:56:40 +02:00
Niels Dossche
f9117eb824
Fix GH-11281: DateTimeZone::getName() does not include seconds in offset
...
If the seconds portion is non-zero, include the seconds in the output.
Closes GH-11282.
2023-05-23 18:52:07 +02:00
Derick Rethans
7e224195ab
Merge branch 'PHP-8.2'
2023-03-23 14:51:24 +00:00
Derick Rethans
50ca489aa5
Merge branch 'PHP-8.1' into PHP-8.2
2023-03-23 14:49:18 +00:00
Derick Rethans
cbac68df6b
Fix GH-10583: DateTime modify with tz pattern should not update linked timezone
2023-03-23 11:46:31 +00:00
Ilija Tovilo
9d5f2f1343
Use new ZSTR_INIT_LITERAL macro ( #10879 )
2023-03-20 16:19:05 +01:00
Derick Rethans
b96a382419
Merge branch 'PHP-8.2'
2023-03-13 11:04:01 +00:00
Derick Rethans
ce5f75fb6f
Fixed oss-fuzz #56931
2023-03-13 09:38:11 +00:00
Derick Rethans
afd42610c0
Merge branch 'PHP-8.2'
2023-03-10 14:43:51 +00:00
Derick Rethans
a225581833
Fix GH-10747: Private and protected properties in serialized Date* objects throw
2023-03-10 14:39:22 +00:00
Max Kellermann
1287747a9a
ext: make various internal functions static ( #10650 )
...
Namely in:
* ext/date
* ext/libxml
* ext/dba
* ext/curl
2023-02-21 15:51:41 +00:00
Max Kellermann
263b22f374
Make lots of string pointers const
( #10646 )
...
This allows using string literals without implicitly casting away the
`const`.
2023-02-21 14:01:37 +00:00
Max Kellermann
413844d626
Zend/zend_types.h: deprecate zend_bool, zend_intptr_t, zend_uintptr_t ( #10597 )
...
These types are standard C99.
For compatibility with out-of-tree extensions, keep the typedefs
in main/php.h.
2023-02-18 19:31:28 +00:00
Derick Rethans
a92ecdb140
Merge branch 'PHP-8.2'
2023-02-10 14:45:41 +00:00
Derick Rethans
5d9ee8f920
Fixed OSS fuzz issues #55589 , #55599 , and #55727
2023-02-10 13:03:47 +00:00
Derick Rethans
b7860cd564
Implement More Appropriate Date/Time Exceptions RFC
2023-02-08 10:27:33 +00:00
Derick Rethans
8d5953c002
Merge branch 'PHP-8.2'
2023-01-31 13:00:13 +00:00
Derick Rethans
cb907d50a8
Merge branch 'PHP-8.1' into PHP-8.2
2023-01-31 13:00:06 +00:00
Derick Rethans
a42bf93308
Fixed GH-10447: 'p' format specifier does not yield 'Z' for 00:00
2023-01-31 12:58:21 +00:00
Derick Rethans
71766d78b7
Merge branch 'PHP-8.2'
2023-01-31 12:55:30 +00:00
Derick Rethans
85fbc6eaa6
Fix GH-10152: Custom properties of Date's child classes are not serialised
2023-01-31 12:53:03 +00:00
Derick Rethans
0ec8733bf4
Merge branch 'PHP-8.2'
2022-12-20 16:07:02 +00:00
Derick Rethans
6b212b6dee
Merge branch 'PHP-8.1' into PHP-8.2
2022-12-20 16:06:55 +00:00
Derick Rethans
d19a70c9a0
Fix GH-9891: DateTime modify with unixtimestamp (@) must work like setTimestamp
2022-12-20 14:41:13 +00:00
Derick Rethans
54056769e9
Merge branch 'PHP-8.2'
2022-10-17 18:22:47 +01:00
Derick Rethans
2e6b317fe3
Merge branch 'PHP-8.1' into PHP-8.2
2022-10-17 18:22:42 +01:00
Derick Rethans
25744dd73c
Merge branch 'PHP-8.0' into PHP-8.1
2022-10-17 18:22:36 +01:00
Derick Rethans
7b48053293
Fixed GH-9763: DateTimeZone ctr mishandles input and adds null byte if the argument is an offset larger than 100*60 minutes
2022-10-17 17:08:44 +01:00
Derick Rethans
b49f5ac2be
Merge branch 'PHP-8.2'
2022-09-14 16:45:27 +01:00
Derick Rethans
f8b27c73c9
Use 'const' for fixed API
2022-09-14 16:40:06 +01:00
Derick Rethans
dd365b044a
Add 'const' to match actual API
2022-09-14 11:02:26 +01:00
Bob Weinand
a01dd9feda
Revert "Port all internally used classes to use default_object_handlers"
...
This reverts commit 94ee4f9834
.
The commit was a bit too late to be included in PHP 8.2 RC1. Given it's a massive ABI break, we decide to postpone the change to PHP 8.3.
2022-09-14 11:13:23 +02:00