| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Related to GH-6701
|
|
|
|
| |
Closes GH-6670
|
|
|
|
|
|
|
| |
We're starting to see a mix between uses of zend_bool and bool.
Replace all usages with the standard bool type everywhere.
Of course, zend_bool is retained as an alias.
|
|
|
|
| |
And drop the U_DEFINE_TRUE_AND_FALSE flag.
|
|
|
|
| |
Closes GH-6309
|
| |
|
|
|
|
|
| |
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).
|
|
|
|
|
|
|
|
|
| |
Affects:
- IntlCalendar
- IntlGregorianCalendar
- IntlBreakIterator
Closes GH-5669
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Userland classes that implement Traversable must do so either
through Iterator or IteratorAggregate. The same requirement does
not exist for internal classes: They can implement the internal
get_iterator mechanism, without exposing either the Iterator or
IteratorAggregate APIs. This makes them usable in get_iterator(),
but incompatible with any Iterator based APIs.
A lot of internal classes do this, because exposing the userland
APIs is simply a lot of work. This patch alleviates this issue by
providing a generic InternalIterator class, which acts as an
adapater between get_iterator and Iterator, and can be easily
used by many internal classes. At the same time, we extend the
requirement that Traversable implies Iterator or IteratorAggregate
to internal classes as well.
Closes GH-5216.
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
For the common ZVAL_OBJ + GC_ADDREF pattern.
This mirrors the existing ZVAL_STR_COPY API.
|
| |
|
| |
|
|
|
|
| |
Closes GH-5370
|
|
|
|
|
|
|
| |
Closes GH-5353. From now on, PHP will have reflection information
about default values of parameters of internal functions.
Co-authored-by: Nikita Popov <nikita.ppv@gmail.com>
|
|
|
|
|
|
| |
To explicitly indicate that objects are uncomparable. For now
this has no functional difference from the usual 1 return value,
but makes intent clearer.
|
| |
|
|
|
|
| |
Closes GH-5207
|
|
|
|
|
| |
The result of Z_INTL_BREAKITERATOR_P() cannot be NULL. This type
of macro in general can never be NULL.
|
|
|
|
| |
Closes GH-5052
|
|
|
|
| |
Except for some bigger ones: reflection, sodium, spl
|
|
|
|
|
|
| |
Since `zend_parse_parameters()` throws now, there is no reason to
explicitly call `zend_parse_parameters_throw()` anymore, and since both
have actually the same implementation, we redefine the latter as macro.
|
|
|
|
| |
Closes GH-4871.
|
|
|
|
|
| |
- introduce zend_compare() that returns -1,0,1 dirctly (without intermediate zval)
- remove compare_objects() object handler, and keep only compare() handler
|
|
|
|
| |
Closes GH-4732.
|
|\
| |
| |
| |
| | |
* PHP-7.4:
Replace ZVAL_COPY() and ZVAL_COPY_VALUE() for IS_OBJECT by cheaper macros
|
| | |
|
| |
| |
| |
| |
| | |
zpp will be throwing for these now, don't report them in addition to
that.
|
|/
|
|
| |
insted of zval(s).
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
|\
| |
| |
| |
| | |
* PHP-7.2:
Fix #76556: get_debug_info handler for BreakIterator shows wrong type
|
| |
| |
| |
| |
| |
| |
| | |
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
|
|\ \
| |/ |
|
| |
| |
| |
| | |
It's documented as such and already accepts null.
|
| | |
|
|\ \
| |/
| |
| |
| | |
* PHP-7.2:
Fix memory leak
|
| | |
|
| |
| |
| |
| | |
The icu namespace is an alias which resolves to the real namespace.
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
converted into macros calling zend_new_array(). They are not functions anymore and don't return any values.
|