Máté Kocsis
f2e199e878
Implement "support doc comments for internal classes and functions" ( #13266 )
...
Fixes #13130
2024-02-25 08:41:31 +01:00
Máté Kocsis
10957e498c
Do not generate frameless info items when func info generation is disabled
...
While here, I fixed newlines around arginfo and function entry generation. Previously, newlines were repeated.
2024-02-18 11:39:00 +01:00
Máté Kocsis
b5a23d88f5
Explicitly initialize object variables passed to Z_PARAM_OBJ_OF_CLASS_OR_LONG_OR_NULL ( #13146 )
...
In order to avoid possible miscompilations like #13082
2024-01-14 16:02:59 +01:00
David Carlier
ba9cf25298
Merge branch 'PHP-8.3'
2024-01-03 17:35:44 +00:00
David Carlier
b32a1cc76f
Merge branch 'PHP-8.2' into PHP-8.3
2024-01-03 17:34:54 +00:00
David Carlier
96ffe6ad7e
ext/intl: fix bug introduced by 5455c3f
...
was meant to fix GH-12943.
Close GH-13001.
2024-01-03 17:33:27 +00:00
David Carlier
20c72e1a43
Revert "Merge branch 'PHP-8.3'"
...
This reverts commit 5455c3fc01
, reversing
changes made to ec8e86b96f
.
2023-12-23 16:04:46 +00:00
David Carlier
5455c3fc01
Merge branch 'PHP-8.3'
2023-12-22 17:28:29 +00:00
David Carlier
f20edf0fb3
Merge branch 'PHP-8.2' into PHP-8.3
2023-12-22 17:26:20 +00:00
David Carlier
6a447e7437
GH-12943 ext/intl accept C as acceptable locale argument.
...
Close GH-12955
2023-12-22 17:26:09 +00:00
David Carlier
683e787860
Fix GH-12727: NumberFormatter constructor throws an exception on invalid locale.
...
Also re-establishing exception throwing on IntlDateFormatter constructor
overwritten by accident most likely so postponing it for next major
release.
Close GH-12868
2023-12-06 06:00:11 +00:00
Dmitry Stogov
110cdd336a
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fixed GH-10008: Narrowing occurred during type inference of ZEND_ADD_ARRAY_ELEMENT
ext/intl: change when the locale is invalid for the 8.1/8.2 serie.
2023-11-02 08:21:36 +03:00
Dmitry Stogov
22735b3ff5
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fixed GH-10008: Narrowing occurred during type inference of ZEND_ADD_ARRAY_ELEMENT
ext/intl: change when the locale is invalid for the 8.1/8.2 serie.
2023-11-02 08:15:50 +03:00
David Carlier
a39e869b55
Merge branch 'PHP-8.1' into PHP-8.2
2023-11-01 19:13:08 +00:00
David Carlier
0da1356c66
ext/intl: change when the locale is invalid for the 8.1/8.2 serie.
...
does not throws an exception as it's considered as a too string change,
but the code user still needs to double check.
2023-11-01 19:12:50 +00:00
Jorg Adam Sowa
9ad7844160
Typed constants in Intl extenstion ( #12360 )
2023-10-29 10:50:16 +01:00
David Carlier
ab22571981
Merge branch 'PHP-8.3'
2023-09-23 20:13:45 +01:00
David Carlier
d9e72bcdab
Merge branch 'PHP-8.2' into PHP-8.3
2023-09-23 20:12:56 +01:00
David Carlier
36f78862c8
Merge branch 'PHP-8.1' into PHP-8.2
2023-09-23 20:12:41 +01:00
David Carlier
a80db7b52a
Fix GH-12282: IntlDateFormatter::construct should throw an exception is the locale field has an invalid value.
...
Close GH-12282
2023-09-23 20:12:13 +01:00
David Carlier
f6fae19a10
ext/intl: expose dateformat UDAT_PATTERN constant.
...
Close GH-12258
2023-09-22 12:32:22 +01:00
David Carlier
35a502f168
Merge branch 'PHP-8.2' into PHP-8.3
2023-09-21 05:35:48 +01:00
David Carlier
63150dc2b1
Merge branch 'PHP-8.1' into PHP-8.2
2023-09-21 05:35:04 +01:00
David Carlier
84c4336aa3
Fix GH-12243, segfault on IntlDateFormatter::construct with dateType set to UDAT_PATTERN but not timeType.
...
udat_open expects its timeStyle's argument to be set to UDAT_PATTERN
when dateStyle is, regardless if there an actual pattern or not.
Close GH-12245
2023-09-21 05:34:49 +01:00
Ilija Tovilo
7b355e8d34
Revert "Merge branch 'PHP-8.2'"
...
This reverts commit 45a3f178dc
, reversing
changes made to b2a54bc6af
.
2023-07-04 09:18:49 +02:00
Máté Kocsis
45a3f178dc
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-9967 Add support for generating custom function, class const, and property attributes in stubs
Closes GH-10170
2023-07-03 11:17:08 +02:00
David Carlier
45677081fa
ext/intl: dateformatter settimezone changes on success, returning true like setcalendar.
...
Closes GH-10790
2023-03-09 21:45:26 +00:00
David CARLIER
690db97c6d
intl extension couple of micro optimisations for error edge cases. ( #10044 )
...
making c++ compile time few enums ranges.
2023-01-14 07:26:05 +00: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
Bob Weinand
94ee4f9834
Port all internally used classes to use default_object_handlers
...
Signed-off-by: Bob Weinand <bobwei9@hotmail.com>
2022-08-31 16:45:27 +02:00
Christoph M. Becker
ac9cbb7174
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Correct IntlDateFormatter::formatObject params
2022-08-15 18:10:54 +02:00
Christoph M. Becker
306da80f56
Merge branch 'PHP-8.0' into PHP-8.1
...
* PHP-8.0:
Correct IntlDateFormatter::formatObject params
2022-08-15 17:58:52 +02:00
Gert de Pagter
05ed47ef12
Correct IntlDateFormatter::formatObject params
...
Closes GH-9341.
2022-08-15 17:56:34 +02:00
Máté Kocsis
c1da9e7964
Declare ext/intl constants in stubs - part 4 ( #9234 )
2022-08-08 08:56:51 +02:00
Ilija Tovilo
51f750ea46
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Allowing catching arg type deprecations in intl classes
2022-03-03 11:27:46 +01:00
Ilija Tovilo
925a30979c
Allowing catching arg type deprecations in intl classes
...
Closes GH-8115
Closes GH-8117
2022-03-03 11:26:35 +01:00
Christoph M. Becker
f06ac9a486
Fix GH-7939: Cannot unserialize IntlTimeZone objects
...
As it is now, `IntlTimeZone`, `IntlCalendar` and `IntlDateFormatter`
and some other intl class instances can be serialized, but the
representation is meaningless, and unserialization yields uninitialized/
unusable objects. To prevent users from noticing this too late, we deny
serialization of such objects in the first place.
Closes GH-7945.
2022-02-17 15:06:29 +01:00
Máté Kocsis
d608319529
Merge branch 'PHP-8.1'
...
* PHP-8.1:
Add more specific array return type hints for various extensions - part 2
Add the --generate-optimizer-info option to the help of gen_stub.php
2021-11-17 10:57:01 +01:00
Máté Kocsis
20fb26e55c
Add more specific array return type hints for various extensions - part 2
...
ext/ftp, ext/gmp, ext/intl
Closes GH-7433
2021-11-17 10:56:27 +01:00
Nikita Popov
6e1d9f6a09
Don't rely on HT internals in datefmt_format_object
...
Use ZEND_HASH_FOREACH_VAL instead.
2021-09-30 11:48:01 +02:00
Máté Kocsis
65b96397b3
Declare tentative return types for ext/intl ( #6986 )
2021-07-06 10:55:43 +02:00
deltragon
ae9f6e7a8f
Add IntlDatePatternGenerator ( #6771 )
...
Add IntlDatePatternGenerator class per RFC https://wiki.php.net/rfc/intldatetimepatterngenerator .
2021-06-10 12:36:38 +02:00
Nikita Popov
cdbf3fdcdd
Remove redundant dtor_obj handlers in intl
...
Both of these just forward to the default implementation, so
just use that directly. This is simpler and benefits from the
special-casing of the default implementation.
2021-06-09 11:47:37 +02:00
Nikita Popov
680d198d50
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Fixed bug #81019
2021-05-17 16:33:44 +02:00
Nikita Popov
0bff67c0ab
Fixed bug #81019
...
Before the zval -> zend_object migration, this code used macros
like FORMATTER_METHOD_FETCH_OBJECT_NO_CHECK, which internally
clear the error. Now that they are no longer used, we need to
manually clear the error.
2021-05-17 16:33:35 +02:00
KsaR
01b3fc03c3
Update http->https in license ( #6945 )
...
1. Update: http://www.php.net/license/3_01.txt to https, as there is anyway server header "Location:" to https.
2. Update few license 3.0 to 3.01 as 3.0 states "php 5.1.1, 4.1.1, and earlier".
3. In some license comments is "at through the world-wide-web" while most is without "at", so deleted.
4. fixed indentation in some files before |
2021-05-06 12:16:35 +02:00
Nikita Popov
331eddadc8
Make date/time type arguments of IntlDateFormatter ctor optional
...
Default them to IntlDateFormatter:FULL, which has value 0, which
was what you would get if you passed null to these arguments in
weak typing mode. The documentation called this ICU's default
date/time type.
2021-04-27 23:58:38 +02:00
Máté Kocsis
bf0f6aaf18
Improve class entry generation
...
Related to GH-6701
2021-02-16 13:09:56 +01:00
Nikita Popov
9d54609a19
Merge branch 'PHP-8.0'
...
* PHP-8.0:
Use E_ERROR to report arginfo/zpp mismatch
Make NumberFormatter ctor $pattern nullable
Make IntlDateFormatter ctor $pattern nullable
2021-02-09 14:37:41 +01:00
Nikita Popov
186f9bab45
Make IntlDateFormatter ctor $pattern nullable
...
The implementation already made this argument nullable, but it
was not reflected in the stub.
2021-02-09 14:25:30 +01:00