summaryrefslogtreecommitdiff
path: root/ext/intl/common
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-8.0'Christoph M. Becker2021-02-171-0/+4
|\ | | | | | | | | * PHP-8.0: Fix #80763: msgfmt_format() does not accept DateTime references
| * Merge branch 'PHP-7.4' into PHP-8.0Christoph M. Becker2021-02-171-0/+4
| |\ | | | | | | | | | | | | * PHP-7.4: Fix #80763: msgfmt_format() does not accept DateTime references
| | * Fix #80763: msgfmt_format() does not accept DateTime referencesChristoph M. Becker2021-02-171-0/+4
| | | | | | | | | | | | | | | | | | `intl_zval_to_millis()` needs to cater to references. Closes GH-6707.
* | | Improve class entry generationMáté Kocsis2021-02-161-2/+1
| | | | | | | | | | | | Related to GH-6701
* | | Implicitly enable function entry generation when class entry generation is ↵Máté Kocsis2021-02-092-5/+2
| | | | | | | | | | | | | | | | | | enabled Closes GH-6675
* | | Add support for generating class entries from stubsMáté Kocsis2021-01-263-9/+19
|/ / | | | | | | | | | | Closes GH-6289 Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
* | Remove proto comments from C filesMax Semenik2020-07-061-10/+4
| | | | | | | | 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.
* | Generate method entries for ext/intlMáté Kocsis2020-04-144-21/+25
| | | | | | | | Closes GH-5370
* | Verify that all stubs have a return typeNikita Popov2020-04-031-0/+5
| |
* | Do not include the same stub multiple timesMáté Kocsis2020-04-032-22/+0
| | | | | | | | Closes GH-5322
* | Add various stubs for IntlMáté Kocsis2020-02-043-8/+54
| | | | | | | | Closes GH-4826
* | 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-312-9/+9
| | | | | | | | Except for some bigger ones: reflection, sodium, spl
* | Add missing ZPP checksMáté Kocsis2019-11-011-0/+8
| | | | | | | | Closes GH-4878.
* | Cleanup return values for Intl when parameter parsing is unsuccessfulMáté Kocsis2019-10-301-2/+2
| | | | | | | | Closes GH-4871.
* | Remove mention of PHP major version in Copyright headersGabriel Caruso2019-09-256-12/+0
| | | | | | | | Closes GH-4732.
* | 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-112-16/+0
|/ | | | | zpp will be throwing for these now, don't report them in addition to that.
* Remove local variablesPeter Kokot2019-02-031-9/+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
|
* Eliminate useless $this related checkDmitry Stogov2018-11-141-1/+1
|
* Sync leading and final newlines in source code filesPeter Kokot2018-10-142-2/+0
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Require ICU ≥ 50.1Christoph M. Becker2018-09-151-7/+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 needless version checksChristoph M. Becker2018-08-011-2/+0
| | | | | | | As of PHP 5.5.3, we're requiring ICU ≥ 4.0[1] anyway, so there's no need to check for ICU 3.x. [1] <http://git.php.net/?p=php-src.git;a=commit;h=8831b00>
* Uze ZVAL_COPY_DEREF() instead of ZVAL_DEREF() and ZVAL_COPY()Dmitry Stogov2018-07-091-2/+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/+6
|
* Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
|
* Move zend_object_iterator_funcs structures into read-only data segmentDmitry Stogov2017-12-141-1/+1
|
* Encapsulate reference-counting primitives.Dmitry Stogov2017-10-271-1/+1
| | | | | | Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead. Added mactros to validate reference-counting (disabled for now). These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.
* Merge branch 'PHP-7.1' into PHP-7.2Derick Rethans2017-08-151-3/+3
|\
| * Merged PHP-7.0 by hand due to conflicts.Derick Rethans2017-08-151-3/+3
| |
* | Merge branch 'PHP-7.1'Nikita Popov2017-04-091-1/+4
|\ \ | |/
| * Fixed #74298 - IntlDateFormatter->format() doesn't return microseconds/fractionsandrewnester2017-04-091-1/+4
| |
* | Merge branch 'PHP-7.1'Nikita Popov2017-03-291-4/+4
|\ \ | |/
| * Let MessageFormatter and IntlDateFormatter accept DateTimeImmutable as wellBen Scholzen2017-03-291-4/+4
| |
* | Deduplicate NAN/INF portability, move to ZendAndrea Faulds2016-03-201-10/+4
|/
* Get rid of implicit type casting in GC_*() macros in Zend/zend_types.h.Dmitry Stogov2015-08-131-1/+1
| | | | | | This prevented compilation warnings and disclosed few incorrect usages in Zend/zend_vm_def.h and ext/dom/xpath.c. Now explicit type casting may be required on call site. This may break some C extension code, but it shoulfn't be a problem to add explicit casting.
* Get rid of more ZVAL_ZVAL() macrosDmitry Stogov2015-06-121-1/+2
|
* trailing whitespace removalStanislav Malyshev2015-01-101-3/+3
|
* cleanup intl typesStanislav Malyshev2014-12-291-1/+1
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-135-77/+77
|
* s/PHP 5/PHP 7/Johannes Schlüter2014-09-196-6/+6
|
* master renames phase 1Anatol Belski2014-08-253-14/+14
|
* ported ext/intl, bugfixes to goAnatol Belski2014-08-191-4/+4
|
* basic macro replacements, all at onceAnatol Belski2014-08-193-10/+10
|
* Fixed iteratorsXinchen Hui2014-06-291-3/+3
|