summaryrefslogtreecommitdiff
path: root/ext/intl/timezone
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-13/+15
| | | | Closes GH-6670
* Replace zend_bool uses with boolNikita Popov2021-01-152-4/+4
| | | | | | | 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.
* Make convert_to_*_ex simple aliases of convert_to_*Nikita Popov2021-01-141-1/+1
| | | | | | | | | | | | | Historically, the _ex variants separated the zval first, if a conversion was necessary. This distinction no longer makes sense since PHP 7. The only difference that was still left is that _ex checked whether the type is the same first, but the usage of these macros did not actually distinguish on whether such an inlined check is valuable or not in a given context. Also drop the unused convert_to_explicit_type macros.
* Use true/false instead of TRUE/FALSE in intlNikita Popov2020-11-092-2/+2
| | | | And drop the U_DEFINE_TRUE_AND_FALSE flag.
* Verify parameter names of function aliasesMáté Kocsis2020-10-162-3/+3
| | | | Closes GH-6335
* Improve parameter names in ext/intlMáté Kocsis2020-10-122-25/+25
| | | | Closes GH-6309
* Add more precise type info for stubsMáté Kocsis2020-09-012-2/+2
| | | | Closes GH-6005
* Add another round of missing parameter types to stubsMáté Kocsis2020-08-072-1/+4
| | | | Closes GH-5950
* Remove proto comments from C filesMax Semenik2020-07-061-6/+2
| | | | 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.
* Add zend_call_known_function() API familyNikita Popov2020-06-091-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | 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-093-3/+3
| | | | In ext/ffi, ext/intl, ext/mysqli, and ext/pcntl
* Generate method entries for ext/intlMáté Kocsis2020-04-144-132/+161
| | | | Closes GH-5370
* Fix nullable types in PHPDocMáté Kocsis2020-04-121-2/+2
|
* Store default parameter values of internal functions in arg infoMáté Kocsis2020-04-081-7/+7
| | | | | | | 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-032-155/+0
| | | | Closes GH-5322
* Add a ZEND_UNCOMPARABLE valueNikita Popov2020-03-311-1/+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.
* Make error messages more consistent by fixing capitalizationMáté Kocsis2020-01-171-2/+2
| | | | 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-053-8/+10
| | | | Closes GH-5052
* Use RETURN_THROWS() after try_convert_to_string()Máté Kocsis2020-01-031-1/+1
|
* Use RETURN_THROWS() after zend_parse_method_parameters()Máté Kocsis2020-01-021-10/+10
|
* Use RETURN_THROWS() during ZPP in most of the extensionsMáté Kocsis2019-12-311-13/+13
| | | | Except for some bigger ones: reflection, sodium, spl
* Add union return types with one classMáté Kocsis2019-11-182-6/+8
|
* Add union return types for function stubsMáté Kocsis2019-11-112-38/+45
|
* Add stubs for IntlTimeZoneMáté Kocsis2019-11-043-93/+341
|
* Cleanup return values for Intl when parameter parsing is unsuccessfulMáté Kocsis2019-10-301-24/+26
| | | | Closes GH-4871.
* Comparison cleanup:Dmitry Stogov2019-10-071-1/+4
| | | | | - 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-254-8/+0
| | | | Closes GH-4732.
* Merge branch 'PHP-7.4'Peter Kokot2019-07-131-1/+1
|\ | | | | | | | | * PHP-7.4: Convert all php_error_docref0 to php_error_docref
| * Convert all php_error_docref0 to php_error_docrefGeorge Peter Banyard2019-07-131-1/+1
| | | | | | | | Closes GH-4394
* | Merge branch 'PHP-7.4'Nikita Popov2019-06-052-2/+7
|\ \ | |/
| * Allow exceptions in __toString()Nikita Popov2019-06-052-2/+7
| | | | | | | | | | | | | | | | | | | | RFC: https://wiki.php.net/rfc/tostring_exceptions And convert some object to string conversion related recoverable fatal errors into Error exceptions. Improve exception safety of internal code performing string conversions.
* | Intl: Don't separately report "bad arguments" errorsNikita Popov2019-03-111-44/+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-6/+6
|/ | | | insted of zval(s).
* Require ICU ≥ 50.1Christoph M. Becker2018-09-152-18/+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
* Fixed incorrrecr zval_dtor() usage to replace value of argument passed by ↵Dmitry Stogov2018-07-051-5/+3
| | | | reference, that may lead to memory leaks.
* Replace legacy zval_dtor() by zval_ptr_dtor_nogc() or even more specialized ↵Dmitry Stogov2018-07-041-7/+7
| | | | | | | 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.
* Avoid magic method hash lookupsDmitry Stogov2018-07-021-1/+1
|
* Export standard object handlers, to avoid indirect accessDmitry Stogov2018-05-311-1/+1
|
* Simplify namespace accessAnatol Belski2018-04-013-4/+4
| | | | The icu namespace is an alias which resolves to the real namespace.
* Utilize the recommended way to handle the icu namespaceAnatol Belski2018-03-313-0/+8
|
* Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
|
* Removed useless separationsDmitry Stogov2017-12-071-4/+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.
* Merged PHP-7.0 by hand due to conflicts.Derick Rethans2017-08-151-2/+2
|
* Update IntlTimeZone methods for ICU 52Sara Golemon2016-04-183-0/+98
| | | | | | | | Adds: string IntlTimeZone::getWindowsID(string id) string IntlTimeZone::getIDForWindowsID(string winID[, string region]) And matching procedural functions
* More zpp cleanup in ext/intlNikita Popov2015-10-061-2/+2
|
* Cleanup (avoid string reallocations)Dmitry Stogov2015-07-012-37/+18
|
* Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-1/+1
| | | | semantick changes).