summaryrefslogtreecommitdiff
path: root/ext/intl
Commit message (Collapse)AuthorAgeFilesLines
* Fix tests for ICU 63.1Anatol Belski2018-10-202-12/+12
| | | | The most of change is U+00A0 vs. new U+202F used in some outputs.
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-15162-252/+15
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. 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
* Trim trailing whitespace in *.phptPeter Kokot2018-10-1467-175/+175
|
* Sync leading and final newlines in source code filesPeter Kokot2018-10-1415-17/+1
| | | | | | | | | | | | | | | | | | | | | | 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
* Trim trailing whitespace in source code filesPeter Kokot2018-10-1311-161/+161
|
* Convert CRLF line endings to LFPeter Kokot2018-10-1312-137/+137
| | | | | | | | | | | | | | | | | | | | | | | | This patch simplifies line endings tracked in the Git repository and syncs them to all include the LF style instead of the CRLF files. Newline characters: - LF (\n) (*nix and Mac) - CRLF (\r\n) (Windows) - CR (\r) (old Mac, obsolete) To see which line endings are in the index and in the working copy the following command can be used: `git ls-files --eol` Git additionally provides `.gitattributes` file to specify if some files need to have specific line endings on all platforms (either CRLF or LF). Changed files shouldn't cause issues on modern Windows platforms because also Git can do output conversion is core.autocrlf=true is set on Windows and use CRLF newlines in all files in the working tree. Unless CRLF files are tracked specifically, Git by default tracks all files in the index using LF newlines.
* Add test for bug #76942Anatol Belski2018-10-051-0/+33
|
* Fixed Bug #76942 U_ARGUMENT_TYPE_MISMATCHAnatol Belski2018-10-052-0/+5
| | | | ref bug #74484
* Fixed bug #74484 MessageFormatter::formatMessage memory corruptionAnatol Belski2018-08-092-0/+52
| | | | with 11+ named placeholder
* Make newly introduced bug76556.phpt more resilientChristoph M. Becker2018-07-011-1/+1
| | | | | Obviously, different compilers mangle the C++ class name differently. We should neither expect a prefix nor a suffix.
* Fix #76556: get_debug_info handler for BreakIterator shows wrong typeChristoph M. Becker2018-06-302-1/+24
| | | | | | | We use the retrieved type for the "type" element instead of the text. This has been confused during the PHP 7 upgrade[1]. [1] http://git.php.net/?p=php-src.git;a=commit;h=1d793348067e5769144c0f7efd86428a4137baec
* Prepare tests for ICU 62.1Anatol Belski2018-06-2512-5/+356
|
* Revert "ICU 59+ requires C++11 and errors out without the option"Stanislav Malyshev2018-06-201-3/+0
| | | | This reverts commit 5dd1ef90caec3021e6ce55c8554e695edf641eaf.
* ICU 59+ requires C++11 and errors out without the optionStanislav Malyshev2018-06-171-0/+3
|
* Make $locale parameter to BreakIterator ctors optionalNikita Popov2018-06-133-16/+10
| | | | It's documented as such and already accepts null.
* Fix tests, ref bug #74385Anatol Belski2018-05-034-8/+8
|
* Fixed bug #74385 Locale::parseLocale() broken with some argumentsAnatol Belski2018-05-031-5/+9
| | | | Rely on the ICU's defined values for the max locale id length.
* Fix memory leakAnatol Belski2018-04-122-1/+11
|
* Group common flagsAnatol Belski2018-04-051-5/+6
|
* Rename varAnatol Belski2018-04-051-1/+1
|
* Fix shared ext/intl compilationAnatol Belski2018-04-031-3/+8
|
* Fix clang build, ref buf #76153Anatol Belski2018-03-301-12/+15
| | | | Clang only allows -std=c++11 for C++ source.
* Adjust tests for ICU 61.1 compatibilityAnatol Belski2018-03-297-8/+236
|
* Fixed bug #76153 Intl compilation fails with icu4c 61.1Anatol Belski2018-03-282-2/+2
| | | | | | Additionally, ICU >= 59.1 requires C++11, so add the flags. Some refactoring is needed to comply with the latest recommended build options, such as automatic icu namespace addition.
* Wrap var depending on conditional compilationAnatol Belski2018-02-161-0/+2
|
* Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-11-022-7/+11
|\ | | | | | | | | * PHP-7.0: Sync and fix tests for ICU 60.1 compat
| * Sync and fix tests for ICU 60.1 compatAnatol Belski2017-11-022-7/+11
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-301-0/+2
|\ \ | |/ | | | | | | * PHP-7.0: Add missing ICU version check
| * Add missing ICU version checkAnatol Belski2017-10-301-0/+2
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-10-251-2/+2
|\ \ | |/ | | | | | | * PHP-7.0: Fix typo in comments
| * Fix typo in commentsFabien Villepinte2017-10-251-2/+2
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-212-6/+4
|\ \ | |/ | | | | | | * PHP-7.0: With ICU 58+, set the default restriction level to high
| * With ICU 58+, set the default restriction level to highAnatol Belski2017-10-212-6/+4
| | | | | | | | | | Further experiments show, that CJK scripts should be ok. If there are any issues, the moderate level can still be set later.
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-214-18/+14
|\ \ | |/ | | | | | | * PHP-7.0: Rework these new tests to match with diffs in ICU 58, 59 and upcoming 60
| * Rework these new tests to match with diffs in ICU 58, 59 and upcoming 60Anatol Belski2017-10-214-18/+14
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-204-0/+91
|\ \ | |/ | | | | | | | | * PHP-7.0: Fixed bug #73655 Spoofchecker::isSuspicious behavior change due to upstream changes Add test for newer ICU version
| * Fixed bug #73655 Spoofchecker::isSuspicious behavior change due to upstream ↵Anatol Belski2017-10-203-0/+41
| | | | | | | | | | | | | | | | | | | | | | | | | | changes There are significant changes in the spoof checking reflecting http://www.unicode.org/reports/tr39/tr39-15.html and relying on the restriction levels. ICU 58+ removes WSC and MSC handling and otherwise undergoes big changes in both code and data areas. Keep up with the basic points for now, as we need to move forward and provide an acceptable experience to PHP users linking to a newer ICU. The most distros ATM don't provide ICU > 57.1, though. We'll need for sure to keep up with the BC breach in ICU 58+ in possible further aspects.
| * Add test for newer ICU versionAnatol Belski2017-10-201-0/+50
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-202-4/+5
|\ \ | |/ | | | | | | * PHP-7.0: Further test fixes for ICU >= 58
| * Further test fixes for ICU >= 58Anatol Belski2017-10-202-4/+5
| |
* | Version checksAnatol Belski2017-10-203-4/+2
| |
* | Yet two wrong version checksAnatol Belski2017-10-202-2/+3
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-2010-12/+10
|\ \ | |/ | | | | | | * PHP-7.0: Fix version checks in tests
| * Fix version checks in testsAnatol Belski2017-10-2010-12/+10
| |
* | Fix version checks in testsAnatol Belski2017-10-202-3/+2
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-2010-4/+242
|\ \ | |/ | | | | | | * PHP-7.0: Sync some tests for compat with ICU 58.1+
| * Sync some tests for compat with ICU 58.1+Anatol Belski2017-10-2010-4/+242
| |
* | Sync some tests for compat with ICU 58.1, PHP 7.1+ partAnatol Belski2017-10-204-6/+95
| |
* | Merge branch 'PHP-7.0' into PHP-7.1Anatol Belski2017-10-201-0/+1
|\ \ | |/ | | | | | | * PHP-7.0: Add skip for incompatible ICU version
| * Add skip for incompatible ICU versionAnatol Belski2017-10-201-0/+1
| |