Christoph M. Becker
54ae770cd6
Merge branch 'PHP-8.3' into PHP-8.4
...
* PHP-8.3:
Adapt ext/intl tests for ICU 75.1 and 76.1
2024-11-15 18:57:12 +01:00
Christoph M. Becker
716b03d081
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Adapt ext/intl tests for ICU 75.1 and 76.1
2024-11-15 18:55:31 +01:00
Christoph M. Becker
f725f504e8
Adapt ext/intl tests for ICU 75.1 and 76.1
...
Closes GH-16788.
2024-11-15 18:55:01 +01:00
Christoph M. Becker
3245a65034
Adapt ext/intl tests for ICU 76.1
...
Regarding the test names, see PR #9800 .
Closes GH-16660.
2024-11-01 22:21:23 +01:00
Christoph M. Becker
e111bf72d7
Adapt ext/intl tests for ICU 75.1
...
Closes GH-16616.
2024-10-27 18:17:08 +01:00
Christoph M. Becker
450740cbb6
[skip ci] Fix typos in XFAIL reasons
2024-08-22 11:48:46 +02:00
Gina Peter Bnayard
5853cdb73d
Use "must not" instead of "cannot" wording
2024-08-21 21:12:17 +01:00
David Carlier
21418b5bb5
ext/intl: SpoofChecker::setAllowedChars support.
...
To limit the acceptable range of acceptable unicode chars via individual
ones or via a pattern.
2024-07-22 19:52:56 +01:00
Tim Düsterhus
29f98e7485
Replace @deprecated by #[\Deprecated] for internal functions / class constants ( #14750 )
...
Co-authored-by: Gina Peter Banyard <girgias@php.net >
Co-authored-by: Niels Dossche <7771979+nielsdos@users.noreply.github.com >
2024-07-10 16:47:31 +02:00
Niels Dossche
2f9de8b9e6
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix reference handling in SpoofChecker
2024-06-01 20:45:01 +02:00
Niels Dossche
c87f29f685
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix reference handling in SpoofChecker
2024-06-01 20:40:17 +02:00
Niels Dossche
5ec26edfb6
Fix reference handling in SpoofChecker
...
Closes GH-14414.
2024-06-01 20:35:57 +02:00
Gina Peter Banyard
33f1cf202e
ext/intl: Various refactoring ( #14360 )
...
* ext/intl: Small extension cleanup
* ext/intl: Normalize cloning error handling behaviour
Always throw a Error exception as we cannot progress from here
* ext/intl: idn.c use ValueErrors where appropriate
Drive-by refactoring
* ext/intl: Remove some unused headers
Probably more cleanup can be done
2024-05-30 12:51:36 +01:00
Ilija Tovilo
7f3fd30c3b
[skip ci] Fix intl test on 32-bit machines
2024-04-30 11:40:32 +02:00
David Carlier
1cf4cc3894
ext/intl: IntlDateFormatter::parseToCalendar addition.
...
Unlike IntlDateFormatter::parse, the timezone is updated
accordingly.
Close GH-13779
2024-04-29 18:55:00 +01:00
Yuya Hamada
44e8301cf6
Add grapheme_str_split function
...
I noticed that PHP does not have a grapheme cluster based str_split function.
So I created the grapheme_str_split function.
This feature will allow you to correctly handle emoji
and variable selectors.
Co-authored-by: Ayesh Karunaratne <Ayesh@users.noreply.github.com >
Close GH-13580
2024-04-10 18:20:23 +01:00
Gina Peter Banyard
dbf0b6aa42
ext/intl: Refactor ResourceBundle get and dimension access ( #13503 )
2024-02-26 17:03:17 +00:00
David CARLIER
9a3a4b5ba2
ext/intl: IntlDateFormatter class removing redundant error message info. ( #13465 )
...
Also correcting new IntlChar class constants typos.
2024-02-21 23:23:09 +00:00
David Carlier
22a3866f0c
ext/intl: Timezone::getIanaID method addition.
...
returns the primary IANA zone ID from the provided timezone ID.
Most of the time, timezone ID==IANA ID.
available from icu >= 74.
Close GH-13419.
2024-02-21 16:09:22 +00:00
Peter Kokot
085da2725f
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Use EXTENSIONS instead of SKIPIF sections in *.phpt
2024-01-31 11:20:56 +01:00
Peter Kokot
8d5fc8d23f
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Use EXTENSIONS instead of SKIPIF sections in *.phpt
2024-01-31 11:20:44 +01:00
Peter Kokot
218a93b898
Use EXTENSIONS instead of SKIPIF sections in *.phpt
...
This also fixes skipped tests due to different naming "zend-test"
instead of "zend_test" and "PDO" instead of "pdo":
- ext/dom/tests/libxml_global_state_entity_loader_bypass.phpt
- ext/simplexml/tests/libxml_global_state_entity_loader_bypass.phpt
- ext/xmlreader/tests/libxml_global_state_entity_loader_bypass.phpt
- ext/zend_test/tests/observer_sqlite_create_function.phpt
EXTENSIONS section is used for the Windows build to load the non-static
extensions.
Closes GH-13276
2024-01-31 11:18:21 +01:00
Máté Kocsis
117b8dee64
Add ifdef for NumberFormatter::ROUND_HALFODD
...
According to the docs, UNUM_ROUND_HALF_ODD is only available since ICU 69.0. The build on Travis currently fails probably because it uses a lower version.
2024-01-20 10:15:02 +01:00
Ayesh Karunaratne
8cc472d5d0
ext/intl: Add NumberFormatter::ROUND_HALFODD
...
The NumberFormatter::ROUND_HALFEVEN constant exists in PHP already, but its counterpart ROUND_HALFODD was missing.
This adds it, using `UNUM_ROUND_HALF_ODD`
Close GH-13191
2024-01-18 18:12:44 +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
Jorg Adam Sowa
94ddc74c9a
RFC: Add 4 new rounding modes to round() function ( #12056 )
...
https://wiki.php.net/rfc/new_rounding_modes_to_round_function
Co-authored-by: Tim Düsterhus <tim@bastelstu.be >
2023-12-21 13:28:05 +01: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
Máté Kocsis
811245d2e0
Calling IntlGregorianCalendar::__construct() with more than 2 arguments and intlgregcal_create_instance()
2023-12-04 22:27:59 +01:00
Máté Kocsis
f4df37af3d
Deprecate calling IntlCalendar::set() with more than 2 arguments and intlcal_set()
2023-12-04 22:27:59 +01:00
Niels Dossche
b3e10df1f7
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix GH-12635: Test bug69398.phpt fails with ICU 74.1
2023-11-11 17:04:48 +01:00
Niels Dossche
608842b5b7
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix GH-12635: Test bug69398.phpt fails with ICU 74.1
2023-11-11 17:04:37 +01:00
Niels Dossche
333cf3c111
Fix GH-12635: Test bug69398.phpt fails with ICU 74.1
...
ICU 74.1 contains new locale data that breaks the test.
Split the test based on the version number to resolve the issue.
Closes GH-12653.
2023-11-11 17:04:01 +01:00
Ilija Tovilo
60ca5a0c1e
Merge branch 'PHP-8.3'
...
* PHP-8.3:
Fix timezone dependent test
2023-11-10 12:11:36 +01:00
Ilija Tovilo
677db1b0de
Merge branch 'PHP-8.2' into PHP-8.3
...
* PHP-8.2:
Fix timezone dependent test
2023-11-10 12:11:27 +01:00
Ilija Tovilo
d316712baa
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix timezone dependent test
2023-11-10 12:11:17 +01:00
SakiTakamachi
6a43135c1d
Fix timezone dependent test
...
Closes GH-12637
2023-11-10 12:10:30 +01: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
Ilija Tovilo
f39b5c4c25
Close PHP tags in tests
...
Closes GH-12422
2023-10-18 17:34:10 +02: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