summaryrefslogtreecommitdiff
path: root/ext/intl
Commit message (Collapse)AuthorAgeFilesLines
...
* | Display nullability in type error messages for internal functionsMáté Kocsis2020-03-311-2/+2
| | | | | | | | Closes GH-5327
* | Make cast_object handler requiredNikita Popov2020-03-311-9/+6
| | | | | | | | | | | | | | | | Avoid subtle differences in behavior depending on whether the handler is absent or returns FAILURE. If you previously set cast_object to NULL, create a handler that always returns FAILURE instead.
* | Add a ZEND_UNCOMPARABLE valueNikita Popov2020-03-312-4/+1
| | | | | | | | | | | | To explicitly indicate that objects are uncomparable. For now this has no functional difference from the usual 1 return value, but makes intent clearer.
* | Use separate typedef for bucket comparison functionNikita Popov2020-03-041-11/+3
| | | | | | | | | | Avoid performing the same casting dance inside each sort compare function.
* | Add stubs for IntlCharMáté Kocsis2020-02-283-90/+504
| | | | | | | | Closes GH-5217
* | Add stubs for UConverterMáté Kocsis2020-02-283-109/+170
| | | | | | | | Closes GH-5218
* | Merge branch 'PHP-7.4'Nikita Popov2020-02-281-5/+2
|\ \ | |/ | | | | | | * PHP-7.4: Use type-checked ref assignment in UConverter
| * Use type-checked ref assignment in UConverterNikita Popov2020-02-281-5/+2
| |
| * Apply tidy formattingNikita Popov2020-02-031-1/+1
| | | | | | | | Mostly reindent PHP scripts to spaces.
* | Change argument error message formatMáté Kocsis2020-02-2650-67/+67
| | | | | | | | Closes GH-5211
* | Get rid of method mapping of BreakIterator classesMáté Kocsis2020-02-257-79/+79
| |
* | Add stubs for Intl BreakIteratorMáté Kocsis2020-02-254-68/+199
| | | | | | | | Closes GH-5207
* | Remove unnecessary checks in breakpoint iteratorNikita Popov2020-02-251-5/+0
| | | | | | | | | | The result of Z_INTL_BREAKITERATOR_P() cannot be NULL. This type of macro in general can never be NULL.
* | Make type error messages more consistentMáté Kocsis2020-02-1750-67/+67
| | | | | | | | Closes GH-5092
* | Revert "Replace @param annotations with type declarations"Christoph M. Becker2020-02-176-12/+18
| | | | | | | | This reverts commit c31029f335ca1b453af799805c43c37e959ad555.
* | Replace @param annotations with type declarationsChristoph M. Becker2020-02-166-18/+12
| |
* | Constrain number parameter of numfmt_format to int|floatChristoph M. Becker2020-02-166-38/+17
| | | | | | | | | | | | | | | | | | | | | | This is inline with similar changes to the math functions. Especially, array to number conversion makes no sense here, and is likely to hide a programming error. To make that feasible, we introduce the `n` specifier for classic ZPP so we can stick with `zend_parse_method_parameters()`. We also remove a test case, which has been degenerated to a ZPP test.
* | Fix [-Wmissing-field-initializers] compiler warning in transliterator_methods.cGeorge Peter Banyard2020-02-111-2/+2
| |
* | Add stubs for NumberFormatterMáté Kocsis2020-02-094-144/+262
| | | | | | | | Closes GH-4827
* | Add various stubs for IntlMáté Kocsis2020-02-0410-169/+389
| | | | | | | | Closes GH-4826
* | Add stubs for IntlCalendarMáté Kocsis2020-02-046-337/+739
| | | | | | | | Closes GH-4846
* | Fix ZPP of intl_cal_set()Máté Kocsis2020-02-042-42/+38
| |
* | Add stubs for IntlDateFormatter & MessageFormatterMáté Kocsis2020-02-049-209/+495
| | | | | | | | Closes GH-4812
* | Reindent phpt filesNikita Popov2020-02-03155-3496/+3496
| |
* | Merge branch 'PHP-7.4'Christoph M. Becker2020-02-031-2/+2
|\ \ | |/ | | | | | | * PHP-7.4: Relax test expectation
| * Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-02-031-2/+2
| |\ | | | | | | | | | | | | * PHP-7.3: Relax test expectation
| | * Relax test expectationChristoph M. Becker2020-02-031-2/+2
| | | | | | | | | | | | | | | | | | | | | Since we're dealing with floating point numbers, precision issues may hit us, and actually it's not necessary to check for the exact number anyway, because it is not exact in the first place. Therefore, we relax the test expectations.
* | | Merge branch 'PHP-7.4'Christoph M. Becker2020-02-032-15/+33
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #79212: NumberFormatter::format() may detect wrong type
| * | Merge branch 'PHP-7.3' into PHP-7.4Christoph M. Becker2020-02-032-15/+33
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix #79212: NumberFormatter::format() may detect wrong type
| | * Fix #79212: NumberFormatter::format() may detect wrong typeChristoph M. Becker2020-02-032-15/+33
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We have to convert to number *before* detecting the type, to cater to internal objects implementing `cast_object`. We also get rid of the fallback behavior of using `FORMAT_TYPE_INT32`, because that can no longer happen; after `convert_scalar_to_number_ex` the type is either `IS_LONG` or `IS_DOUBLE`. We cater explicitly to the `IS_ARRAY` case what also avoids triggering a type confusion when `::TYPE_INT64` is passed as `$type`.
* | | Fix indentation and whitespaces in testsMáté Kocsis2020-01-311-22/+22
| | | | | | | | | | | | In preparation for GH-5074
* | | Fix #74063: NumberFormatter fails after retrieval from sessionChristoph M. Becker2020-01-3021-599/+20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While it would be desireable to actually support unserialization of NumberFormatter instances, at least we should not allow serialization for now. We also remove some doubtful tests, which have been added[1] claiming that they would crash the intl extension, but apparently no fix has been applied, and the test cases have not been marked as XFAIL. [1] <http://git.php.net/?p=php-src.git;a=commit;h=ed793b2a3f857fd49c0c1b036062140da5b3e674>
* | | Fix #78649 Provide ICU RELATIVE_ constantsMáté Kocsis2020-01-222-0/+76
| | | | | | | | | | | | Closes GH-5105
* | | Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-179-14/+14
| | | | | | | | | | | | Closes GH-5066 As a first step, let's capitalize their initial letter when it is applicable.
* | | Throw exception for unconstructed intl objectsMáté Kocsis2020-01-0533-148/+144
| | | | | | | | | | | | Closes GH-5052
* | | Use RETURN_THROWS() in various placesMáté Kocsis2020-01-031-1/+1
| | |
* | | Add stubs for various intl functionsMáté Kocsis2020-01-0314-193/+317
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Closes GH-4819 - Add stubs for idn functions - Add stubs for grapheme functions - Add stubs for Spoofchecker - Add stubs for Normalizer - Add stubs for ResourceBundle - Fix arginfos - Add support for union return types - Fix arginfo for resourcebundle_create()
* | | Use RETURN_THROWS() after try_convert_to_string()Máté Kocsis2020-01-033-3/+3
| | |
* | | Use RETURN_THROWS() after zend_parse_method_parameters()Máté Kocsis2020-01-0224-109/+109
| | |
* | | Use RETURN_THROWS() after zend_throw_error()Máté Kocsis2020-01-013-4/+4
| | |
* | | Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-3122-110/+110
| | | | | | | | | | | | Except for some bigger ones: reflection, sodium, spl
* | | Merge branch 'PHP-7.4'Christoph M. Becker2019-12-092-1/+17
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix #78912: INTL Support for accounting format
| * | Fix #78912: INTL Support for accounting formatChristoph M. Becker2019-12-092-1/+17
| | | | | | | | | | | | | | | | | | | | | We provide `NumberFormatter::CURRENCY_ACCOUNTING` to wrap `UNUM_CURRENCY_ACCOUNTING `[1]. [1] <https://unicode-org.github.io/icu-docs/apidoc/released/icu4c/unum_8h.html#a4eb4d3ff13bd506e7078b2be4052266dae97cdd7ed612d07d251021c076efb1c5>
* | | Fix typo with msgfmt_parse_message()Fabien Villepinte2019-11-192-3/+3
| | |
* | | Add union return types with one classMáté Kocsis2019-11-182-6/+8
| | |
* | | Add missing zend_parse_parameters_none()Christoph M. Becker2019-11-161-0/+4
| | |
* | | Add stubs for the Locale component of IntlMáté Kocsis2019-11-166-122/+276
| | |
* | | Merge branch 'PHP-7.4'Stanislav Malyshev2019-11-112-2/+15
|\ \ \ | |/ / | | | | | | | | | * PHP-7.4: Fix bug #78804 - Segmentation fault in Locale::filterMatches
| * | Merge branch 'PHP-7.3' into PHP-7.4Stanislav Malyshev2019-11-112-2/+15
| |\ \ | | |/ | | | | | | | | | * PHP-7.3: Fix bug #78804 - Segmentation fault in Locale::filterMatches
| | * Merge branch 'PHP-7.2' into PHP-7.3Stanislav Malyshev2019-11-112-2/+15
| | |\ | | | | | | | | | | | | | | | | * PHP-7.2: Fix bug #78804 - Segmentation fault in Locale::filterMatches