summaryrefslogtreecommitdiff
path: root/ext/intl/php_intl.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* Require ICU ≥ 50.1Christoph M. Becker2018-09-151-20/+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
* Bump intl extension version to PHP release versionPeter Kokot2018-06-141-3/+1
| | | | | This patch syncs and simplifies the intl core extension versioning to match the PHP release version.
* Rethink conditionsAnatol Belski2018-04-061-2/+2
| | | | | | | Raise the requirement to ICU 56. Mixing both old and new normalizer APIs would create too much complexity. Therefore go by the recommended ICU version where all the normalizer API became stable. For the older ICU, the deprecated normalizer API is used.
* Check feature availability as ICU < 49 is still supportedAnatol Belski2018-04-051-0/+4
|
* Add normalizer_get_raw_decomposition functionPaul Crovella2018-03-221-0/+5
| | | | Implements #76111 https://bugs.php.net/bug.php?id=76111
* Move constants into read-only data segmentDmitry Stogov2017-12-141-1/+1
|
* Add TZ and Unicode versions to intl MINFOAnatol Belski2017-10-211-0/+12
|
* Merge branch 'PHP-7.0' into PHP-7.1Sara Golemon2017-07-261-21/+21
|\ | | | | | | | | * PHP-7.0: Bugfix #74993 Wrong reflection param into for some intl: lookup_*() methods
| * Bugfix #74993 Wrong reflection param into for some intl: lookup_*() methodsSara Golemon2017-07-261-21/+21
| |
* | 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()
| * Fix bug #74705 for collator_get_sort_keyRemi Collet2017-06-131-1/+1
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-05-021-1/+6
|\ \ | |/ | | | | | | * PHP-7.0: Fix bug #74468 wrong reflection on Collator::sortWithSortKeys
| * Fix bug #74468 wrong reflection on Collator::sortWithSortKeysFabien Villepinte2017-05-021-1/+6
| |
* | remove unused declarationsAnatol Belski2016-06-231-16/+0
|/
* Move semicolon into TSRMLS_CACHE_EXTERN/DEFINENikita Popov2016-03-031-1/+1
| | | | Also re bug #71575.
* Remove datefmt_set_timezone_id and OO variantNikita Popov2015-04-011-1/+0
|
* cleanup the mod version macros, round 2Anatol Belski2015-03-231-2/+0
|
* made ZEND_TSRMLS_CACHE_* macros look like function callsAnatol Belski2015-02-161-2/+2
| | | | which also comply with the current semantics for such macros
* Add IntlChar class to intl extensionSara Golemon2015-01-161-0/+4
| | | | Exposes ICU's uchar functionality as a set of static methods
* trailing whitespace removalStanislav Malyshev2015-01-101-2/+2
|
* first shot remove TSRMLS_* thingsAnatol Belski2014-12-131-19/+19
|
* opcache, intl, gmp, exif, com, bcmath to use static tsrmlsAnatol Belski2014-10-171-0/+6
|
* s/PHP 5/PHP 7/Johannes Schlüter2014-09-191-1/+1
|
* master renames phase 1Anatol Belski2014-08-251-1/+1
|
* basic macro replacements, all at onceAnatol Belski2014-08-191-1/+1
|
* Merge branch 'master' into testDmitry Stogov2014-07-071-1/+1
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (48 commits) change locale - looks like not everybody has sl_SI Fix bug #66921 - Wrong argument type hint for function intltz_from_date_time_zone fix format Fix bug #67052 (NumberFormatter::parse() resets LC_NUMERIC setting) Make sure the generator script also creates a newline at the end of file Add newline at end of file to prevent compilation warning Fix handling of session user module custom handlers. Reference bug report instead of github issue in NEWS file add more exts for Travis Update NEWS Fix phpdbg.1 man page installation when build != src directory BFN for bug #67551 (php://input temp file will be located in sys_temp_dir instead of upload_tmp_dir) reorder restore API compatibility finish refactor php_stream_temp_create{,_ex} and use it for the php://input stream refactor _php_stream_fopen_{temporary_,tmp}file() fix length overflow of HTTP_RAW_POST_DATA Update NEWS Fixed bug #67215 (php-cgi work with opcache, may be segmentation fault happen) ... Conflicts: ext/opcache/zend_accelerator_util_funcs.c ext/session/mod_user.c ext/spl/spl_array.c ext/spl/spl_dllist.c ext/standard/file.c ext/standard/streamsfuncs.c ext/standard/string.c main/streams/memory.c
| * Fix bug #66921 - Wrong argument type hint for function ↵Stanislav Malyshev2014-07-071-1/+1
| | | | | | | | intltz_from_date_time_zone
* | Fixed segfault while starting upXinchen Hui2014-06-281-1/+1
| |
* | Refactoring ext/intl (only compilerable now, far to finish :<)Xinchen Hui2014-06-281-2/+2
|/
* intl: add intlcal_set_minimal_days_in_first_week()Gustavo André dos Santos Lopes2013-07-031-0/+6
| | | | | and IntlCalendar::setMinimalDaysInFirstWeek(). This one had slipped. we had a ::getMinimalDaysInFirstWeek() but no way to change the value.
* Add UConverter class (ICU's UConverter API)Sara Golemon2013-01-291-0/+5
| | | | RFC at http://wiki.php.net/rfc/uconverter
* Merge branch 'PHP-5.4'Gustavo Lopes2012-08-261-2/+2
|\ | | | | | | | | | | | | | | * PHP-5.4: Fixed defective cloning in ext/intl classes NEWS for commit 72c807a Allow Spoofchecker to be registered on ICU 49.1 Announce on NEWS change in 1ce572c
| * Allow Spoofchecker to be registered on ICU 49.1Gustavo Lopes2012-08-261-2/+2
| |
* | Merge branch '5.4'Gustavo André dos Santos Lopes2012-07-301-0/+0
|\ \ | |/ | | | | | | | | | | | | * 5.4: Fix test title and limit it to ICU >= 4.8 Remove executable bit from files Limit test to ICU 49 Remove executable bit from files
| * Merge branch '5.3' into 5.4Gustavo André dos Santos Lopes2012-07-301-0/+0
| |\ | | | | | | | | | | | | | | | * 5.3: Limit test to ICU 49 Remove executable bit from files
| | * Remove executable bit from filesGustavo André dos Santos Lopes2012-07-301-0/+0
| | |
| | * - Make usage of new PHP_FE_END macroFelipe Pena2011-07-251-1/+1
| | |
| | * Show ICU Data version inside phpinfo()Ilia Alshanetsky2011-06-031-0/+3
| | |
| | * Implemented FR #54561 (Expose ICU Version & ICU Data Version info).Ilia Alshanetsky2011-06-011-0/+4
| | |
| * | - Support for UTS #46.Gustavo André dos Santos Lopes2011-11-241-2/+4
| | |
| * | - Make usage of new PHP_FE_END macroFelipe Pena2011-07-251-1/+1
| | |
| * | Show ICU Data version inside phpinfo()Ilia Alshanetsky2011-06-031-0/+3
| | |
| * | Implemented FR #54561 (Expose ICU Version & ICU Data Version info).Ilia Alshanetsky2011-06-011-0/+4
| | |
* | | ini intl.explicit_cleanup -> INTL_EXPLICIT_CLEANUPGustavo André dos Santos Lopes2012-07-241-26/+5
| | | | | | | | | | | | | | | Added an environment variable and removed the ini setting intl.explicit_cleanup for calling u_cleanup()
* | | Do not fetch default locale once on minit or rinitGustavo Lopes2012-07-231-9/+0
| | | | | | | | | | | | | | | The default locale is now requested to ICU when it's needed by using intl_get_default_locale().
* | | Add ini setting intl.explicit_cleanupGustavo Lopes2012-07-231-1/+29
| | | | | | | | | | | | | | | This is to help with looking for leaks. If set to true, this ini setting forces a call to u_cleanup() on module shutdown.
* | | Merge branch 'datefmt_tz_cal_interop'Gustavo André dos Santos Lopes2012-07-221-0/+9
|\ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | * datefmt_tz_cal_interop: Readded accidentally removed line Added IntlDateFormatter::formatObject(). Refactor Refactored internal_get_timestamp() Unified zval -> UDate conversions
| * | | Added IntlDateFormatter::formatObject(). RefactorGustavo André dos Santos Lopes2012-07-221-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | To better support IntlCalendar, added this function: string IntlDateFormatter::formatObject(IntlCalendar|DateTime $obj [, array|int|string $format = null [, string $locale = null). $format is either of the constants IntlDateFormatter::FULL, etc., in which case this format applies to both the date and the time, an array in the form array($dateFormat, $timeFormat), or a string with the SimpleDateFormat pattern. This uses both the Calendar type and the timezone of the passed object to configure the formatter (a GregorianCalendar is forced for DateTime). Some stuff was moved around and slighlt modified to allow for more code reuse.
* | | | Merge branch 'break_iterator'Gustavo André dos Santos Lopes2012-06-251-0/+9
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * break_iterator: Fix typo in error message BreakIterator: fix compat with old ICU versions Fix build error one ext/intl BreakIterator::getPartsIterator: new optional arg Added IntlCodePointBreakIterator. Add Intl prefix to BreakIterator/RuleBasedBI Remove trailing space Replaced zend_parse_method_params with plain zpp BreakIter: Removed getAvailableLocales/getHashCode Change in BreakIterator::getPartsIterator() BreakIterator: add rules status constants Tests for (RuleBased)BreakIterator. BreakIterator and RuleBasedBreakiterator added