summaryrefslogtreecommitdiff
path: root/ext/intl/breakiterator
Commit message (Collapse)AuthorAgeFilesLines
* Improve class entry generationMáté Kocsis2021-02-162-6/+4
| | | | Related to GH-6701
* Generate ext/intl class entries from stubsMáté Kocsis2021-02-096-39/+76
| | | | Closes GH-6670
* Replace zend_bool uses with boolNikita Popov2021-01-151-1/+1
| | | | | | | We're starting to see a mix between uses of zend_bool and bool. Replace all usages with the standard bool type everywhere. Of course, zend_bool is retained as an alias.
* Use true/false instead of TRUE/FALSE in intlNikita Popov2020-11-091-7/+7
| | | | And drop the U_DEFINE_TRUE_AND_FALSE flag.
* Improve parameter names in ext/intlMáté Kocsis2020-10-122-7/+7
| | | | Closes GH-6309
* Prevent double-construction of IntlRuleBasedBreakIteratorNikita Popov2020-08-261-1/+8
|
* Ensure RuleBasedBreakIterator constructor throws on failureNikita Popov2020-08-251-13/+13
| | | | | Constructors must throw on failure indepdendent of the configured intl error mode.
* Clean up BreakIterator create_object handlerNikita Popov2020-08-251-3/+3
| | | | | | Use standard zend_object_alloc() function and fix the object_init_properties() call (which works out okay because there are no properties).
* Warning to ValueError promotion in Intl extension Part 1George Peter Banyard2020-07-313-32/+21
| | | | | | | | | Affects: - IntlCalendar - IntlGregorianCalendar - IntlBreakIterator Closes GH-5669
* Update outdated arginfo hashesMáté Kocsis2020-06-301-1/+1
|
* Introduce InternalIteratorNikita Popov2020-06-244-3/+19
| | | | | | | | | | | | | | | | | | | Userland classes that implement Traversable must do so either through Iterator or IteratorAggregate. The same requirement does not exist for internal classes: They can implement the internal get_iterator mechanism, without exposing either the Iterator or IteratorAggregate APIs. This makes them usable in get_iterator(), but incompatible with any Iterator based APIs. A lot of internal classes do this, because exposing the userland APIs is simply a lot of work. This patch alleviates this issue by providing a generic InternalIterator class, which acts as an adapater between get_iterator and Iterator, and can be easily used by many internal classes. At the same time, we extend the requirement that Traversable implies Iterator or IteratorAggregate to internal classes as well. Closes GH-5216.
* Include stub hash in generated arginfo filesNikita Popov2020-06-241-1/+2
| | | | | | | | | | | | The hash is used to check whether the arginfo file needs to be regenerated. PHP-Parser will only be downloaded if this is actually necessary. This ensures that release artifacts will never try to regenerate stubs and thus fetch PHP-Parser, as long as you do not modify any files. Closes GH-5739.
* Add ZVAL_OBJ_COPY macroNikita Popov2020-06-171-2/+1
| | | | | For the common ZVAL_OBJ + GC_ADDREF pattern. This mirrors the existing ZVAL_STR_COPY API.
* Refactor IntlBreakIterator::next() handlingGeorge Peter Banyard2020-06-051-13/+8
|
* Convert code path which should never happen to assertionGeorge Peter Banyard2020-06-051-7/+4
|
* Generate method entries for ext/intlMáté Kocsis2020-04-148-198/+105
| | | | Closes GH-5370
* Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-4/+4
| | | | | | | Closes GH-5353. From now on, PHP will have reflection information about default values of parameters of internal functions. Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* Add a ZEND_UNCOMPARABLE valueNikita Popov2020-03-311-3/+0
| | | | | | To explicitly indicate that objects are uncomparable. For now this has no functional difference from the usual 1 return value, but makes intent clearer.
* 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.
* Throw exception for unconstructed intl objectsMáté Kocsis2020-01-051-2/+2
| | | | Closes GH-5052
* Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-314-19/+19
| | | | Except for some bigger ones: reflection, sodium, spl
* zend_parse_parameters_throw() is obsoleteChristoph M. Becker2019-11-011-1/+1
| | | | | | Since `zend_parse_parameters()` throws now, there is no reason to explicitly call `zend_parse_parameters_throw()` anymore, and since both have actually the same implementation, we redefine the latter as macro.
* Cleanup return values for Intl when parameter parsing is unsuccessfulMáté Kocsis2019-10-303-17/+17
| | | | Closes GH-4871.
* Comparison cleanup:Dmitry Stogov2019-10-071-1/+6
| | | | | - introduce zend_compare() that returns -1,0,1 dirctly (without intermediate zval) - remove compare_objects() object handler, and keep only compare() handler
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-2512-24/+0
| | | | Closes GH-4732.
* Merge branch 'PHP-7.4'Dmitry Stogov2019-05-281-2/+3
|\ | | | | | | | | * PHP-7.4: Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
| * Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macrosDmitry Stogov2019-05-281-2/+3
| |
* | Intl: Don't separately report "bad arguments" errorsNikita Popov2019-03-114-41/+0
| | | | | | | | | | zpp will be throwing for these now, don't report them in addition to that.
* | Refactor zend_object_handlers API to pass zend_object* and zend_string* ↵Dmitry Stogov2019-02-041-5/+5
|/ | | | insted of zval(s).
* Use ZEND_THIS macro to hide implementation details in extensions code.Dmitry Stogov2018-11-153-16/+16
|
* Eliminate useless $this related checkDmitry Stogov2018-11-143-15/+15
|
* Replace getThis() by EX(This), when additional check is not necessary.Dmitry Stogov2018-11-141-1/+1
|
* Remove assignment irrelevant for release buildAnatol Belski2018-10-141-2/+1
|
* Require ICU ≥ 50.1Christoph M. Becker2018-09-152-10/+0
| | | | | | | | | | | | | | | | | Given that ICU is a set of lively developed libraries, that ICU 50.1 has been released on 2012-11-05, and PHP 7.4 is scheduled to be released seven years after it, we consider it appropriate to ditch these legacy versions. Particularly, that would be a reasonable groundwork to implement part two of the “Deprecate and remove INTL_IDNA_VARIANT_2003” RFC[1], namely to default idn_to_ascii()'s and idn_to_utf8()'s $variant parameter to INTL_IDNA_VARIANT_UTS46, which is not defined in ICU < 4.6. See also the related discussion on internals@[2]. [1] <https://wiki.php.net/rfc/deprecate-and-remove-intl_idna_variant_2003> [2] <http://news.php.net/php.internals/101626>ff
* Remove unused variablesGabriel Caruso2018-07-252-3/+1
|
* Uze ZVAL_COPY_DEREF() instead of ZVAL_DEREF() and ZVAL_COPY()Dmitry Stogov2018-07-091-2/+1
|
* Merge branch 'PHP-7.2'Christoph M. Becker2018-06-301-1/+1
|\ | | | | | | | | * PHP-7.2: Fix #76556: get_debug_info handler for BreakIterator shows wrong type
| * Fix #76556: get_debug_info handler for BreakIterator shows wrong typeChristoph M. Becker2018-06-301-1/+1
| | | | | | | | | | | | | | We use the retrieved type for the "type" element instead of the text. This has been confused during the PHP 7 upgrade[1]. [1] http://git.php.net/?p=php-src.git;a=commit;h=1d793348067e5769144c0f7efd86428a4137baec
* | Merge branch 'PHP-7.2'Nikita Popov2018-06-131-1/+1
|\ \ | |/
| * Make $locale parameter to BreakIterator ctors optionalNikita Popov2018-06-131-1/+1
| | | | | | | | It's documented as such and already accepts null.
* | Export standard object handlers, to avoid indirect accessDmitry Stogov2018-05-312-2/+2
| |
* | Merge branch 'PHP-7.2'Anatol Belski2018-04-121-0/+1
|\ \ | |/ | | | | | | * PHP-7.2: Fix memory leak
| * Fix memory leakAnatol Belski2018-04-121-0/+1
| |
* | Simplify namespace accessAnatol Belski2018-04-016-10/+10
| | | | | | | | The icu namespace is an alias which resolves to the real namespace.
* | Utilize the recommended way to handle the icu namespaceAnatol Belski2018-03-316-0/+13
| |
* | Remove condition that is always falseAnatol Belski2018-02-151-3/+0
| |
* | Move zend_object_iterator_funcs structures into read-only data segmentDmitry Stogov2017-12-141-2/+2
| |
* | Refactored array creation API. array_init() and array_init_size() are ↵Dmitry Stogov2017-09-201-2/+1
|/ | | | converted into macros calling zend_new_array(). They are not functions anymore and don't return any values.