Máté Kocsis
85338569de
Narrow bool return types to true when possible
2023-05-07 19:34:09 +02:00
Javier Eguiluz
732d92c0e5
[skip ci] Fix various typos and grammar issues ( #11143 )
2023-04-28 11:05:32 +02:00
David CARLIER
976d7ed4c6
ext/intl: deprecate U_MULTIPLE_DECIMAL_SEPERATORS constant
...
Close GH-10980
2023-04-23 10:37:55 +01:00
Remi Collet
c75facb566
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Fix GH-11071: Revert "Fix [-Wundef] warning in INTL extension"
2023-04-18 11:05:23 +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
2da299703a
ext/intl IntlChar::enumCharNames changes the signature to void.
...
Close GH-10904
2023-03-28 18:07:35 +01:00
David Carlier
7623bf0b06
ext/intl: breakiterator::setText returns false on failure.
...
Close GH-10820
2023-03-28 13:29:09 +01: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
02ec4c5071
Fix GH-10727: Spoofchecker constant updates.
...
- Adding MIXED_NUMBERS from ICU 58.
- Adding HIDDEN_OVERLAY from ICU 62.
Closes GH-10730.
2023-02-28 12:27:38 +00:00
Max Kellermann
d5c649b36b
zend_compiler, ...: use uint8_t instead of zend_uchar ( #10621 )
...
`zend_uchar` suggests that the value is an ASCII character, but here,
it's about very small integers. This is misleading, so let's use a
C99 integer instead.
On all architectures currently supported by PHP, `zend_uchar` and
`uint8_t` are identical. This change is only about code readability.
2023-02-23 14:56:54 +00:00
David Carlier
1eb14ee291
Merge branch 'PHP-8.2'
2023-02-21 21:03:51 +00: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
Derick Rethans
b7860cd564
Implement More Appropriate Date/Time Exceptions RFC
2023-02-08 10:27:33 +00:00
Max Kellermann
d3facbe283
Mark globals as const ( #10303 )
...
This moves them from ``.data`` to ``.rodata`` and allows more compiler optimizations.
* ext/opcache/zend_accelerator_hash: make prime_numbers const
* Zend/zend_signal: make zend_sigs const
* ext/dba: make dba_handler pointers const
* ext/exif: make php_tiff_bytes_per_format and other globals const
* ext/intl/grapheme: make grapheme_extract_iters const
* ext/mstring: make rare_codepoint_bitvec const
* ext/snmp: make objid_mib const
* ext/opcache: make all zend_shared_memory_handlers const
2023-01-23 13:46:58 +00:00
Christoph M. Becker
c8955c078a
Revert GH-10220
...
Cf. <https://github.com/php/php-src/pull/10220#issuecomment-1383739816 >.
This reverts commit ecc880f491 .
This reverts commit 588a07f737 .
This reverts commit f377e15751 .
This reverts commit b4ba16fe18 .
This reverts commit 694ec1deea .
This reverts commit 6b34de8eba .
This reverts commit aa1cd02a43 .
This reverts commit 308fd311ea .
This reverts commit 16203b53e1 .
This reverts commit 738fb5ca54 .
This reverts commit 9fdbefacd3 .
This reverts commit cd4a7c1d90 .
This reverts commit 928685eba2 .
This reverts commit 01e5ffc85c .
2023-01-16 12:27:33 +01: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
Max Kellermann
308fd311ea
ext/{standard,json,random,...}: add missing includes
2023-01-10 14:19:03 +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
David Carlier
3fb7198034
intl extension, follow up on #10006 for numfmt_set_pattern
...
Closes GH-10073.
2022-12-12 19:54:13 +00:00
David Carlier
6422cf6f1a
intl extension: msgfmt_set_pattern add pattern format error informations.
2022-12-09 17:10:51 +00:00
Christoph M. Becker
8dd51b462d
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.
Fixes GH-9799.
Closes GH-9800.
2022-10-22 10:31:50 +02:00
Máté Kocsis
c153ec877f
Merge branch 'PHP-8.2'
...
* PHP-8.2:
Improve string class constant code generation
2022-09-26 23:13:31 +02: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
18b7e43106
Merge branch 'PHP-8.2'
2022-09-13 12:51:19 +01: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
David CARLIER
d67df602a6
intl: use uspoof_check2UTF8 call when available. ( #9478 )
2022-09-06 13:07:07 +01:00
Tim Düsterhus
03fd405423
Use php_info_print_table_header for actual column headers only ( #9485 )
...
Using php_info_print_table_header() for "Foo: bar" looks odd and out of place,
because the whole line is colored. It is also questionable from a HTML
semantics point of view, because it does not described the columns that follow.
The use of this across extensions is inconsistent. It was part of the skeleton,
but ext/date or ext/json already use a regular row.
2022-09-06 08:48:22 +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
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