| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
| |
In this case, it's only a matter of using the same type order
in both cases.
|
|
|
|
|
|
| |
Remove the explicit mention of IntlGregorianCalendar in the latter.
It is a subclass of IntlCalendar, and as such covered if only
IntlCalendar is used as the return type.
|
|\
| |
| |
| |
| | |
* PHP-7.4:
Fixed bug #80425
|
| |
| |
| |
| |
| |
| | |
Rename the methods in MessageFormatAdapter to make sure they don't
clash with anything defined by icu itself, which may be a problem
if icu is linked statically.
|
| |
| |
| |
| | |
And drop the U_DEFINE_TRUE_AND_FALSE flag.
|
|\ \
| |/
| |
| |
| | |
* PHP-7.4:
Split tests for compatibility with ICU 68.1
|
| | |
|
| |
| |
| |
| | |
Closes GH-6335
|
| |
| |
| |
| |
| |
| |
| | |
As reported by cmb, this results a VC runtime warning. I don't
believe there's a problem here, as we only use calendar_long if
both calendar_is_null and calendar_obj are not set, but it doesn't
hurt to initialize it either...
|
| |
| |
| |
| | |
Closes GH-6309
|
|\ \
| |/
| |
| |
| | |
* PHP-7.4:
intl: report more information about message pattern parse errors
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
The message patterns can be pretty complex, so reporting a generic
U_PARSE_ERROR without any additional information makes it needlessly
hard to fix erroneous patterns.
This commit makes use of the additional UParseError* parameter to
umsg_open to retrieve more details about the parse error to report that
to the user via intl_get_error_message()
Additional improve error reporting from the IntlMessage constructor.
Previously, all possible failures when calling IntlMessage::__construct()
would be masked away with a generic "Constructor failed" message.
This would include invalid patterns.
This commit makes sure that the underlying error that caused the
constructor failure is reported as part of the IntlException error
message.
Closes GH-6325.
|
| |
| |
| |
| | |
Cherry-picked from c915c601710e2a44e6c7f89fcb12b8047c968108.
|
| | |
|
| |
| |
| |
| | |
For strrpos with positive out of bounds offsets was not detected.
|
| |
| |
| |
| |
| |
| |
| | |
For consistency with str* and mb_str* functions.
Closes GH-6245.
Closes php/php-tasks#20.
|
| | |
|
| |
| |
| |
| | |
Closes GH-6197
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Make the behavior of substr(), mb_substr(), iconv_substr() and
grapheme_substr() consistent when it comes to the handling of
out of bounds offsets. substr() will now always clamp out of
bounds offsets to the string boundary. Cases that previously
returned false will now return an empty string. This means that
substr() itself *always* returns a string now (like mb_substr()
already did before.)
Closes GH-6182.
|
| | |
|
| |
| |
| |
| |
| |
| | |
Make sure we throw the same kind of error regardless of whether
the offset is out-of-bounds in the fast path or in the slow
path.
|
| |
| |
| |
| | |
An offset equal to the string length is not out of bounds.
|
| |
| |
| |
| | |
It is used only once with allow_errors enabled
|
| |
| |
| |
| |
| |
| | |
Support for this was removed in PHP 7.0.
See: https://wiki.php.net/rfc/remove_hex_support_in_numeric_strings
|
| |
| |
| |
| | |
Closes GH-6173
|
| |
| |
| |
| |
| | |
This should fix most of the remaining issues with tabs and spaces
being mixed in tests.
|
| |
| |
| |
| |
| |
| | |
In preparation for generating method signatures for the manual.
This change gets rid of bogus false|null return types, a few unnecessary trailing backslashes, and settles on using ? when possible for nullable types.
|
| |
| |
| |
| |
| |
| | |
Closes GH-6081
Co-Authored-By: Nikita Popov <nikic@php.net>
|
| |
| |
| |
| |
| |
| |
| | |
They will now follow the canonical order of types. Older macros are
left intact due to maintaining BC.
Closes GH-6112
|
| |
| |
| |
| | |
Closes GH-5999
|
| |
| |
| |
| | |
Closes GH-5972
|
| |
| |
| |
| | |
We can add these types as a native type declaration to stubs as a side-effect. Closes GH-6068
|
| |
| |
| |
| | |
Closes GH-6005
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Constructors must throw on failure indepdendent of the configured
intl error mode.
|
| |
| |
| |
| |
| |
| | |
Use standard zend_object_alloc() function and fix the
object_init_properties() call (which works out okay because there
are no properties).
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Declare __STDC_CONSTANT_MACROS and __STDC_FORMAT_MACROS via -D
to make sure they are declared before the first stdint.h include.
We also define these in php_stdint.h, but don't always include that
file first.
This is necessary for old compilers that use C99 rather than C11
semantics for stdint.h.
|
| |
| |
| |
| | |
Closes GH-5958
|
| |
| |
| |
| | |
Closes GH-5950
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
Affects:
- IntlCalendar
- IntlGregorianCalendar
- IntlBreakIterator
Closes GH-5669
|
| |
| |
| |
| | |
Related to GH-5627
|
| |
| |
| |
| |
| | |
Check this once before the sort, instead of on every compare.
Also directly store the UCollator to make things more obvious.
|
| | |
|
| | |
|