Calvin Buckley
4e21a26db2
Fix check for newer versions of ICU ( #14186 )
...
* Fix check for newer versions of ICU
The previous test would always trigger, even if the version of ICU
installed didn't require C++17. This was because it incorrectly used
the `test` program, which broke the build on systems without a C++17
compiler.
Tested with macOS 14 and i 7.2.
* Fix broken ICU version check for definition
Same as the previous fix for C++17.
---------
Co-authored-by: Peter Kokot <peterkokot@gmail.com>
2024-05-10 14:20:17 -03:00
David Carlier
cc46a4e6b5
ext/intl: level up c++ runtime std for icu 74 and onwards.
...
to align with what is required to build icu 74 itself.
Close GH-14002
2024-04-19 10:04:25 +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
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
6a447e7437
GH-12943 ext/intl accept C as acceptable locale argument.
...
Close GH-12955
2023-12-22 17:26:09 +00: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
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
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
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
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
George Peter Banyard
fa0953f49d
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fixed bug GH-12020: intl_get_error_message() broken after MessageFormatter::formatMessage() fails
2023-09-03 01:04:06 +01:00
George Peter Banyard
a579fa807c
Fixed bug GH-12020: intl_get_error_message() broken after MessageFormatter::formatMessage() fails
...
Passing NULL as the pointer to intl_error* will use the global error stack.
This is what we need to do instead of pushing it onto the temporary format object that is released.
2023-09-03 01:02:46 +01:00
Ilija Tovilo
5d90c5057d
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Replace xfail with skipif in calendar_clear_variation1.phpt
2023-07-27 12:30:27 +02:00
Ilija Tovilo
6b6a5cd28e
Replace xfail with skipif in calendar_clear_variation1.phpt
...
Fixes GH-11128
Closes GH-11801
2023-07-27 12:29:49 +02:00
George Peter Banyard
1e41b0f1a5
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
ext/intl: Fix memory leak in MessageFormatter::format()
2023-07-12 15:44:41 +01:00
George Peter Banyard
536dbd74fa
ext/intl: Fix memory leak in MessageFormatter::format()
...
Closes GH-11658
2023-07-12 15:43:45 +01:00
Ilija Tovilo
776a685aed
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
[skip ci] XFAIL intl IntlCalendar::clear() test that may fail with ICU 73
2023-06-25 13:27:50 +02:00
Ilija Tovilo
8ec5a10916
[skip ci] XFAIL intl IntlCalendar::clear() test that may fail with ICU 73
2023-06-25 13:27:38 +02:00
Remi Collet
f5dc2c31d9
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Fix GH-11071: Revert "Fix [-Wundef] warning in INTL extension"
2023-04-18 11:04:54 +02:00
Remi Collet
31e21f7dbc
Fix GH-11071: Revert "Fix [-Wundef] warning in INTL extension"
...
This reverts commit ea8686540a
.
2023-04-18 11:04:28 +02:00
David Carlier
bb16c2e90f
Merge branch 'PHP-8.1' into PHP-8.2
2023-02-21 21:03:28 +00:00
NathanFreeman
0a466e7ad8
Fix GH-10647: Spoofchecker isSuspicious/areConfusable methods
...
error code's argument.
Closes GH-10653.
2023-02-21 21:00:49 +00:00
Christoph M. Becker
435dc5ef1c
Merge branch 'PHP-8.1' into PHP-8.2
...
* PHP-8.1:
Adapt ext/intl tests for ICU 72.1
2023-01-09 14:09:43 +01:00
Christoph M. Becker
a9e7b90cc2
Adapt ext/intl tests for ICU 72.1
...
This version replaces SPACEs before the meridian with NARROW NO-BREAK
SPACEs. Thus, we split the affected test cases as usual.
(cherry picked from commit 8dd51b462d
)
Fixes GH-10262.
2023-01-09 14:08:40 +01:00
Máté Kocsis
e4f2376919
Improve string class constant code generation ( #9577 )
...
Using strlen() will make sure that non-constant values can also be used.
2022-09-26 23:12:34 +02: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
George Peter Banyard
bacbfb81ab
Merge branch 'PHP-8.1' into PHP-8.2
2022-09-13 12:50:38 +01:00
George Peter Banyard
71e198be25
Merge branch 'PHP-8.0' into PHP-8.1
2022-09-13 12:45:42 +01:00
George Peter Banyard
47500f3300
Fix GH-9421 Incorrect argument number for ValueError in NumberFormatter
...
Closes GH-9489
2022-09-13 12:42:58 +01: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
Máté Kocsis
b4ec3e9bc0
Do not generate CONST_CS when registering constants ( #9439 )
2022-08-28 08:27:19 +02:00
Máté Kocsis
66c4ade0fe
Declare ext/intl constants in stubs - part 14 ( #9387 )
2022-08-22 13:20:26 +02:00
Máté Kocsis
f743cb0f69
Declare ext/intl constants in stubs - part 13 ( #9385 )
2022-08-21 13:12:38 +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
aeabb51ae4
Declare ext/intl constants in stubs - part 9 ( #9276 )
2022-08-09 11:32:06 +02:00
Máté Kocsis
08748577c0
Declare ext/intl constants in stubs - part 8 ( #9275 )
2022-08-09 11:29:26 +02:00
Máté Kocsis
383eefa9e4
Declare ext/intl constants in stubs - part 11 ( #9281 )
2022-08-09 11:28:18 +02:00
Máté Kocsis
bc4c11ab14
Declare ext/intl constants in stubs - part 12 ( #9282 )
2022-08-09 11:27:41 +02:00
Máté Kocsis
559d5030a8
Declare ext/intl constants in stubs - part 10 ( #9280 )
2022-08-09 11:19:23 +02:00
Máté Kocsis
8fee9a3f11
Declare ext/intl constants in stubs - part 7 ( #9269 )
2022-08-08 14:24:22 +02:00
Máté Kocsis
d97f8eef33
Declare ext/intl constants in stubs - part 6 ( #9268 )
2022-08-08 14:21:48 +02:00
Máté Kocsis
614e9ec804
Declare ext/intl constants in stubs - part 5 ( #9267 )
2022-08-08 12:00:10 +02:00
Máté Kocsis
c1da9e7964
Declare ext/intl constants in stubs - part 4 ( #9234 )
2022-08-08 08:56:51 +02:00
Máté Kocsis
163a278a02
Declare ext/intl constants in stubs - part 3 ( #9233 )
2022-08-08 08:28:40 +02:00