summaryrefslogtreecommitdiff
path: root/ext/intl
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add more precise type info for stubsMáté Kocsis2020-09-0111-71/+71
| | | | | | | | Closes GH-6005
* | Prevent ResourceBundle double-constructionNikita Popov2020-08-262-0/+23
| |
* | Prevent double-construction of NumberFormatterNikita Popov2020-08-262-0/+16
| |
* | Prevent double-construction of IntlGregorianCalendarNikita Popov2020-08-262-2/+15
| |
* | Prevent double-construction of IntlRuleBasedBreakIteratorNikita Popov2020-08-262-1/+17
| |
* | Ensure RuleBasedBreakIterator constructor throws on failureNikita Popov2020-08-253-20/+17
| | | | | | | | | | 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).
* | Fixed bug #79946Nikita Popov2020-08-102-2/+1
| | | | | | | | | | | | | | | | | | | | Declare __STDC_CONSTANT_MACROS and __STDC_FORMAT_MACROS via -D to make sure they are declared before the first stdint.h include. We also define these in php_stdint.h, but don't always include that file first. This is necessary for old compilers that use C99 rather than C11 semantics for stdint.h.
* | Add many missing closing PHP tags to testsMáté Kocsis2020-08-09121-2/+121
| | | | | | | | Closes GH-5958
* | Add another round of missing parameter types to stubsMáté Kocsis2020-08-0718-24/+60
| | | | | | | | Closes GH-5950
* | Accept zend_object* in zend_update_propertyNikita Popov2020-08-071-1/+1
| |
* | Add a bunch of missing argument types to stubsMáté Kocsis2020-08-032-3/+13
| |
* | Warning to ValueError promotion in Intl extension Part 1George Peter Banyard2020-07-3124-459/+442
| | | | | | | | | | | | | | | | | | Affects: - IntlCalendar - IntlGregorianCalendar - IntlBreakIterator Closes GH-5669
* | Add a few missing parameter types in stubsMáté Kocsis2020-07-302-2/+3
| | | | | | | | Related to GH-5627
* | Validate collator earlier during sortNikita Popov2020-07-243-28/+15
| | | | | | | | | | Check this once before the sort, instead of on every compare. Also directly store the UCollator to make things more obvious.
* | Fix some clang warningsNikita Popov2020-07-231-1/+1
| |
* | Fix UConvert::getErrorMessage() leak on zpp failureNikita Popov2020-07-211-1/+1
| |
* | Fix IntlGregorianCalendar constructor signatureNikita Popov2020-07-175-8/+19
| | | | | | | | | | Give these conversative UNKNOWN defaults and no types, as the overload is something of a mess.
* | Review the usage of apostrophes in error messagesMáté Kocsis2020-07-101-1/+1
| | | | | | | | Closes GH-5590
* | Remove no_separation flagNikita Popov2020-07-071-2/+0
| |
* | Explicitly create references in UConverter callbacksNikita Popov2020-07-071-2/+4
| | | | | | | | And don't allow separation.
* | Fix a few commentsMáté Kocsis2020-07-066-55/+23
| |
* | Remove proto comments from C filesMax Semenik2020-07-0634-590/+185
| | | | | | | | Closes GH-5758
* | Add get_gc handle for object iteratorsNikita Popov2020-07-011-1/+2
| | | | | | | | Optional handler with the same semantics as the object handler.
* | Update outdated arginfo hashesMáté Kocsis2020-06-302-2/+2
| |
* | Drop non-well numeric string in Intl testGeorge Peter Banyard2020-06-281-4/+0
| |
* | Introduce InternalIteratorNikita Popov2020-06-247-5/+36
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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-2416-16/+32
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | Add zend_call_known_function() API familyNikita Popov2020-06-092-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This adds the following APIs: void zend_call_known_function( zend_function *fn, zend_object *object, zend_class_entry *called_scope, zval *retval_ptr, int param_count, zval *params); void zend_call_known_instance_method( zend_function *fn, zend_object *object, zval *retval_ptr, int param_count, zval *params); void zend_call_known_instance_method_with_0_params( zend_function *fn, zend_object *object, zval *retval_ptr); void zend_call_known_instance_method_with_1_params( zend_function *fn, zend_object *object, zval *retval_ptr, zval *param); void zend_call_known_instance_method_with_2_params( zend_function *fn, zend_object *object, zval *retval_ptr, zval *param1, zval *param2); These are used to perform a call if you already have the zend_function you want to call. zend_call_known_function() is the base API, the rest are just really thin wrappers around it for the common case of instance method calls. Closes GH-5692.
* | Fix some UNKNOWN default valuesMáté Kocsis2020-06-098-13/+12
| | | | | | | | In ext/ffi, ext/intl, ext/mysqli, and ext/pcntl
* | Add tests to check mismatching function signaturesMáté Kocsis2020-06-061-34/+17
| | | | | | | | Closes GH-5666
* | 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
| |
* | Fix weird zend_bool usage in Intl Calendar::roll() methodGeorge Peter Banyard2020-06-041-11/+5
| | | | | | | | This code really needs to be review as it's convoluted for no good reason.
* | Implement #47074: phpinfo() reports "On" as 1 for the some extensionsChristoph M. Becker2020-06-041-1/+1
| | | | | | | | What is modified as boolean, should also be displayed as boolean.
* | Improve type error messages when an object is givenMáté Kocsis2020-05-262-2/+2
| | | | | | | | | | | | | | From now on, we always display the given object's type instead of just reporting "object". Additionally, make the format of return type errors match the format of argument errors. Closes GH-5625
* | Fix [-Wundef] warning in INTL extensionGeorge Peter Banyard2020-05-201-2/+2
| |
* | Use new Fast ZPP macros for string|int parar typesGeorge Peter Banyard2020-05-133-354/+203
| | | | | | | | Closes GH-5512
* | Deprecate old ReflectionParameter type declaration APIsNikita Popov2020-05-111-15/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This deprecates: ReflectionParameter::isArray() ReflectionParameter::isCallable() ReflectionParameter::getClass() These APIs have been superseded by ReflectionParameter::getType() since PHP 7.0. Types introduced since that time are not available through the old APIs, and their behavior is getting increasingly confusing. This is how they interact with PHP 8 union types: * isArray() will return true if the type is array or ?array, but not any other union type * Same for isCallable(). * getClass() will return a class for T|int etc, as long as the union only contains a single type. T1|T2 will return null. This behavior is not particularly reasonable or useful, and will get more confusing as new type system extensions are added. Closes GH-5209.
* | Make float to string casts locale-independentMáté Kocsis2020-05-082-2/+2
| | | | | | | | | | | | | | | | From now on, float to string casting will always behave locale-independently. RFC: https://wiki.php.net/rfc/locale_independent_float_to_string Closes GH-5224 Co-authored-by: George Peter Banyard <girgias@php.net>
* | Update intl test suite for ICU 67.1Christoph M. Becker2020-04-244-3/+469
| |
* | 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
* | Add Intl resource bundle files for big-endian architecture.George Peter Banyard2020-04-148-1/+10
| | | | | | | | | | | | | | | | Little and Big endian files have their own designated folder. Both use the ASCII charset family. We may want to add a big-endian/EBCDIC charset family resource bundle in the future. The build script is currently left untouched as it seems to mostly be for Windows.
* | Generate method entries for ext/intlMáté Kocsis2020-04-14106-1912/+1829
| | | | | | | | Closes GH-5370
* | Fix nullable types in PHPDocMáté Kocsis2020-04-122-10/+10
| |
* | Fix the default value of the $length parameter of grapheme_substr()Máté Kocsis2020-04-102-2/+2
| |
* | Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-0815-115/+115
| | | | | | | | | | | | | | 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>
* | Verify that all stubs have a return typeNikita Popov2020-04-031-0/+5
| |
* | Do not include the same stub multiple timesMáté Kocsis2020-04-0331-1184/+1341
| | | | | | | | Closes GH-5322