summaryrefslogtreecommitdiff
path: root/ext/intl/collator
Commit message (Collapse)AuthorAgeFilesLines
* Improve class entry generationMáté Kocsis2021-02-161-2/+1
| | | | Related to GH-6701
* Generate ext/intl class entries from stubsMáté Kocsis2021-02-093-7/+15
| | | | Closes GH-6670
* Use true/false instead of TRUE/FALSE in intlNikita Popov2020-11-091-2/+2
| | | | And drop the U_DEFINE_TRUE_AND_FALSE flag.
* Improve parameter names in ext/intlMáté Kocsis2020-10-122-17/+17
| | | | Closes GH-6309
* Drop -1 mode for collator_is_numeric()George Peter Banyard2020-09-213-7/+4
| | | | It is used only once with allow_errors enabled
* Drop Hex support in numeric strings for Intl collatorGeorge Peter Banyard2020-09-211-12/+1
| | | | | | Support for this was removed in PHP 7.0. See: https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings
* Add another round of missing parameter types to stubsMáté Kocsis2020-08-072-7/+4
| | | | Closes GH-5950
* Warning to ValueError promotion in Intl extension Part 1George Peter Banyard2020-07-311-0/+2
| | | | | | | | | Affects: - IntlCalendar - IntlGregorianCalendar - IntlBreakIterator Closes GH-5669
* Validate collator earlier during sortNikita Popov2020-07-241-24/+13
| | | | | Check this once before the sort, instead of on every compare. Also directly store the UCollator to make things more obvious.
* Fix a few commentsMáté Kocsis2020-07-062-14/+4
|
* Remove proto comments from C filesMax Semenik2020-07-066-64/+15
| | | | Closes GH-5758
* 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.
* Fix Bug #79431 Various compiler warnings on Big endian architecture with GCC ↵vibhutisawant2020-04-151-1/+1
| | | | | | | | 5.4.0 Fix [-Werror=maybe-uninitialized] compilation warnings on big endian system Closes GH-5373
* Generate method entries for ext/intlMáté Kocsis2020-04-1414-173/+90
| | | | Closes GH-5370
* Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-2/+2
| | | | | | | 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>
* Do not include the same stub multiple timesMáté Kocsis2020-04-033-87/+62
| | | | Closes GH-5322
* 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.
* Use separate typedef for bucket comparison functionNikita Popov2020-03-041-11/+3
| | | | | Avoid performing the same casting dance inside each sort compare function.
* Add various stubs for IntlMáté Kocsis2020-02-043-42/+201
| | | | Closes GH-4826
* Use RETURN_THROWS() after zend_parse_method_parameters()Máté Kocsis2020-01-025-11/+11
|
* Use RETURN_THROWS() after zend_throw_error()Máté Kocsis2020-01-013-4/+4
|
* Cleanup return values for Intl when parameter parsing is unsuccessfulMáté Kocsis2019-10-305-11/+11
| | | | Closes GH-4871.
* Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-2520-40/+0
| | | | Closes GH-4732.
* Remove unused is_constructor argumentsNikita Popov2019-07-151-3/+3
|
* Remove get() object handlerNikita Popov2019-05-291-23/+1
| | | | | | | | Now that set() is gone, there is little point in keeping get(), as it is essentially just a different way of writing cast_object() now. Closes GH-4202.
* Merge branch 'PHP-7.4'Dmitry Stogov2019-05-281-1/+1
|\ | | | | | | | | * 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-1/+1
| |
* | Intl: Don't separately report "bad arguments" errorsNikita Popov2019-03-116-35/+0
| | | | | | | | | | zpp will be throwing for these now, don't report them in addition to that.
* | Make zpp failures always throw, independent of strict_typesNikita Popov2019-03-111-2/+1
| | | | | | | | | | | | | | | | | | | | | | Previously zend_parse_parameters (and FastZPP) would handle invalid arguments depending on strict_types: With strict_types=1, a TypeError is thrown, with strict_types=0 a warning is thrown and (usually) NULL is returned. Additionally, some functions (constructors always and other methods sometimes) opt-it to throwing regardless of strict_types. This commit changes zpp to always generate a TypeError exception in PHP 8.
* | Refactor zend_object_handlers API to pass zend_object* and zend_string* ↵Dmitry Stogov2019-02-041-2/+2
|/ | | | insted of zval(s).
* Remove local variablesPeter Kokot2019-02-0310-89/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | This patch removes the so called local variables defined per file basis for certain editors to properly show tab width, and similar settings. These are mainly used by Vim and Emacs editors yet with recent changes the once working definitions don't work anymore in Vim without custom plugins or additional configuration. Neither are these settings synced across the PHP code base. A simpler and better approach is EditorConfig and fixing code using some code style fixing tools in the future instead. This patch also removes the so called modelines for Vim. Modelines allow Vim editor specifically to set some editor configuration such as syntax highlighting, indentation style and tab width to be set in the first line or the last 5 lines per file basis. Since the php test files have syntax highlighting already set in most editors properly and EditorConfig takes care of the indentation settings, this patch removes these as well for the Vim 6.0 and newer versions. With the removal of local variables for certain editors such as Emacs and Vim, the footer is also probably not needed anymore when creating extensions using ext_skel.php script. Additionally, Vim modelines for setting php syntax and some editor settings has been removed from some *.phpt files. All these are mostly not relevant for phpt files neither work properly in the middle of the file.
* Use ZEND_THIS macro to hide implementation details in extensions code.Dmitry Stogov2018-11-151-1/+1
|
* Replace getThis() by EX(This), when additional check is not necessary.Dmitry Stogov2018-11-141-1/+1
|
* Get rid of ZEND_ACC_CTOR, ZEND_ACC_DTOR and ZEND_ACC_IMPLEMENTED_ABSTRACTDmitry Stogov2018-09-051-1/+1
|
* Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-2/+2
| | | | | | | destructors. zval_dtor() doesn't make a lot of sense in PHP-7.* and it's used incorrectly in some places. Its occurances should be replaced by zval_ptr_dtor() or zval_ptr_dtor_nogc(), or even more specialized destructors.
* Export standard object handlers, to avoid indirect accessDmitry Stogov2018-05-311-1/+1
|
* Remove return types from some magic method in protosGabriel Caruso2018-03-091-1/+1
| | | | __construct, __destruct, __wakeup does not have return types defined.
* Reduce variable scopeAnatol Belski2018-02-151-1/+1
|
* Reduce variable scopeAnatol Belski2018-02-151-2/+1
|
* Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
|
* Add zend_object_alloc() APINikita Popov2017-11-251-3/+1
| | | | | | | | | | | Using ecalloc() to create objects is expensive, because the dynamic-size memset() is unreasonably slow. Make sure we only zero the main object structure with known size, as the properties are intialized separately anyway. Technically we do not need to zero the embedded zend_object structure either, but as long as the memset argument is constant, a couple more bytes don't really matter.
* Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-09-121-2/+6
|\ | | | | | | | | * PHP-7.0: Fixed bug #75193 segfault in collator_convert_object_to_string
| * Fixed bug #75193 segfault in collator_convert_object_to_stringRemi Collet2017-09-121-2/+6
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Remi Collet2017-06-131-1/+1
|\ \ | |/ | | | | | | | | | | * PHP-7.0: NEWS Fix bug #74705 for collator_get_sort_key Fixes bug #74705 Wrong ReflectionInfo for Collator::getSortKey()
| * Fixes bug #74705 Wrong ReflectionInfo for Collator::getSortKey()Tyson Andre2017-06-131-1/+1
| | | | | | | | https://secure.php.net/manual/en/collator.getsortkey.php
* | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-05-021-1/+5
|\ \ | |/ | | | | | | * PHP-7.0: Fix bug #74468 wrong reflection on Collator::sortWithSortKeys
| * Fix bug #74468 wrong reflection on Collator::sortWithSortKeysFabien Villepinte2017-05-021-1/+5
| |
* | Remove useless dtor handlers in intlNikita Popov2016-07-161-8/+0
| | | | | | | | These are only indirections to the default handler
* | Fix leak in intl collator compare functionNikita Popov2016-07-161-1/+3
| |
* | Merge branch 'throw-error-in-extensions'Aaron Piotrowski2016-07-053-6/+6
|\ \