Nikita Popov
d04a1e8d70
Merge branch 'PHP-7.1' into PHP-7.2
2018-06-13 23:48:28 +02:00
Nikita Popov
e77077edeb
Make $locale parameter to BreakIterator ctors optional
...
It's documented as such and already accepts null.
2018-06-13 23:47:20 +02:00
Anatol Belski
12da45ada0
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix tests, ref bug #74385
2018-05-03 17:17:02 +02:00
Anatol Belski
b0def5bde9
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix tests, ref bug #74385
2018-05-03 17:16:42 +02:00
Anatol Belski
6b85926104
Fix tests, ref bug #74385
2018-05-03 17:15:47 +02:00
Anatol Belski
319856dc62
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Fix memory leak
2018-04-12 18:26:31 +02:00
Anatol Belski
9f4905fb0d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix memory leak
2018-04-12 18:25:58 +02:00
Anatol Belski
5fe6d2134b
Fix memory leak
2018-04-12 18:25:27 +02:00
Anatol Belski
39301abbe1
Expose functionality for NFKC_Casefold normalization
2018-04-06 18:14:11 +02:00
Anatol Belski
f9a3519f41
Sync normalizer_get_raw_decomposition() to allow passing form
...
as it is the case with the other Normalizer methods.
2018-04-06 11:13:15 +02:00
Anatol Belski
36014ad23f
Replace the deprecated API by the newer one available with ICU 56+
2018-04-06 10:12:44 +02:00
Anatol Belski
13a5020f98
Check feature availability as ICU < 49 is still supported
2018-04-05 18:08:49 +02:00
Anatol Belski
a6ac5699b6
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Adjust tests for ICU 61.1 compatibility
2018-03-29 14:14:29 +02:00
Anatol Belski
9510611cdd
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Adjust tests for ICU 61.1 compatibility
2018-03-29 14:13:48 +02:00
Anatol Belski
398f56dbc8
Adjust tests for ICU 61.1 compatibility
2018-03-29 14:12:19 +02:00
Paul Crovella
b873d3c288
Add normalizer_get_raw_decomposition function
...
Implements #76111 https://bugs.php.net/bug.php?id=76111
2018-03-22 23:27:39 +01:00
Gabriel Caruso
ded3d984c6
Use EXPECT instead of EXPECTF when possible
...
EXPECTF logic in run-tests.php is considerable, so let's avoid it.
2018-02-20 21:53:48 +01:00
Gabriel Caruso
fef879a2d6
Use bool instead of boolean while throwing a type error
...
PHP requires boolean typehints to be written "bool" and disallows
"boolean" as an alias. This changes the error messages to match
the actual type name and avoids confusing messages like "must be
of type boolean, boolean given".
This a followup to ce1d69a1f6
, which
implements the same change for integer->int.
2018-02-04 23:09:40 +01:00
Gabriel Caruso
ce1d69a1f6
Use int instead of integer in type errors
...
PHP requires integer typehints to be written "int" and does not
allow "integer" as an alias. This changes type error messages to
match the actual type name and avoids confusing messages like
"must be of the type integer, integer given".
2018-02-04 19:08:23 +01:00
Gabriel Caruso
c6c9e71a5b
Add missing SKIPIF sections
2018-02-03 13:54:34 +01:00
Nikita Popov
b2b2b437af
Add _IS_NUMBER as cast_object() target type
...
convert_scalar_to_number() will now call cast_object() with an
_IS_NUMBER argument, in which case the cast handler should return
either an integer or floating point number, whichever is more
appropriate.
Previously convert_scalar_to_number() unconditionally converted
objects to integers instead.
Fixes bug #53033 .
Fixes bug #54973 .
Fixes bug #73108 .
2017-12-26 12:39:06 +01:00
Anatol Belski
a3e1bea4be
Merge branch 'PHP-7.2'
...
* PHP-7.2:
Sync and fix tests for ICU 60.1 compat
2017-11-02 12:39:34 +01:00
Anatol Belski
8a4702223d
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync and fix tests for ICU 60.1 compat
2017-11-02 12:39:04 +01:00
Anatol Belski
e8af216ce5
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Sync and fix tests for ICU 60.1 compat
2017-11-02 12:38:32 +01:00
Anatol Belski
dbfa0140ae
Sync and fix tests for ICU 60.1 compat
2017-11-02 12:37:04 +01:00
Fabien Villepinte
557edb75c0
Add tests for UConverter::getStandards()
2017-10-28 14:03:05 +02:00
Anatol Belski
202e7ce65c
Missed skip
2017-10-21 17:40:38 +02:00
Anatol Belski
e952cc24db
Fix build on ICU < 53
2017-10-21 17:37:51 +02:00
Anatol Belski
f56ceb7f5b
Add Spoofchecker::setRestrictionLevel() and corresponding constans
2017-10-21 17:12:21 +02:00
Anatol Belski
3eb7ea55ae
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Rework these new tests to match with diffs in ICU 58, 59 and upcoming 60
2017-10-21 10:30:43 +02:00
Anatol Belski
88ec44dfe3
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Rework these new tests to match with diffs in ICU 58, 59 and upcoming 60
2017-10-21 10:30:14 +02:00
Anatol Belski
5d85d967bd
Rework these new tests to match with diffs in ICU 58, 59 and upcoming 60
2017-10-21 10:29:04 +02:00
Anatol Belski
416c993c8e
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fixed bug #73655 Spoofchecker::isSuspicious behavior change due to upstream changes
Add test for newer ICU version
2017-10-20 20:14:48 +02:00
Anatol Belski
6f395736e2
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fixed bug #73655 Spoofchecker::isSuspicious behavior change due to upstream changes
Add test for newer ICU version
2017-10-20 20:14:08 +02:00
Anatol Belski
f95063647c
Fixed bug #73655 Spoofchecker::isSuspicious behavior change due to upstream 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.
2017-10-20 19:23:32 +02:00
Anatol Belski
2198d38cbc
Add test for newer ICU version
2017-10-20 19:02:42 +02:00
Anatol Belski
57fc9fcba4
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Further test fixes for ICU >= 58
Version checks
2017-10-20 18:40:55 +02:00
Anatol Belski
3d55910f35
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Further test fixes for ICU >= 58
2017-10-20 18:40:26 +02:00
Anatol Belski
e02c41fc72
Further test fixes for ICU >= 58
2017-10-20 18:39:46 +02:00
Anatol Belski
7027a1643f
Version checks
2017-10-20 18:26:14 +02:00
Anatol Belski
fb88cee0fc
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Yet two wrong version checks
2017-10-20 16:55:32 +02:00
Anatol Belski
65d4bd0311
Yet two wrong version checks
2017-10-20 16:54:47 +02:00
Anatol Belski
0f7ddf0d47
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Fix version checks in tests
Fix version checks in tests
2017-10-20 15:25:27 +02:00
Anatol Belski
ae6d877f54
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Fix version checks in tests
2017-10-20 15:25:01 +02:00
Anatol Belski
2f444640b4
Fix version checks in tests
2017-10-20 15:24:43 +02:00
Anatol Belski
7240d99838
Fix version checks in tests
2017-10-20 15:23:09 +02:00
Anatol Belski
7775f9e872
Merge branch 'PHP-7.1' into PHP-7.2
...
* PHP-7.1:
Sync some tests for compat with ICU 58.1, PHP 7.1+ part
Sync some tests for compat with ICU 58.1+
2017-10-20 13:58:53 +02:00
Anatol Belski
e2afa00b4c
Merge branch 'PHP-7.0' into PHP-7.1
...
* PHP-7.0:
Sync some tests for compat with ICU 58.1+
2017-10-20 13:57:44 +02:00
Anatol Belski
26473523b0
Sync some tests for compat with ICU 58.1, PHP 7.1+ part
2017-10-20 13:56:58 +02:00
Anatol Belski
877e0b04bc
Sync some tests for compat with ICU 58.1+
2017-10-20 13:55:32 +02:00