| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
| |
| |
| | |
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.
|
| | |
|
| | |
|
| |
| |
| |
| |
| | |
Give these conversative UNKNOWN defaults and no types, as the
overload is something of a mess.
|
| |
| |
| |
| | |
Closes GH-5590
|
| | |
|
| |
| |
| |
| | |
And don't allow separation.
|
| | |
|
| |
| |
| |
| | |
Closes GH-5758
|
| |
| |
| |
| | |
Optional handler with the same semantics as the object handler.
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This adds the following APIs:
void zend_call_known_function(
zend_function *fn, zend_object *object, zend_class_entry *called_scope,
zval *retval_ptr, int param_count, zval *params);
void zend_call_known_instance_method(
zend_function *fn, zend_object *object, zval *retval_ptr, int param_count, zval *params);
void zend_call_known_instance_method_with_0_params(
zend_function *fn, zend_object *object, zval *retval_ptr);
void zend_call_known_instance_method_with_1_params(
zend_function *fn, zend_object *object, zval *retval_ptr, zval *param);
void zend_call_known_instance_method_with_2_params(
zend_function *fn, zend_object *object, zval *retval_ptr, zval *param1, zval *param2);
These are used to perform a call if you already have the
zend_function you want to call. zend_call_known_function()
is the base API, the rest are just really thin wrappers around
it for the common case of instance method calls.
Closes GH-5692.
|
| |
| |
| |
| | |
In ext/ffi, ext/intl, ext/mysqli, and ext/pcntl
|
| |
| |
| |
| | |
Closes GH-5666
|
| | |
|
| | |
|
| |
| |
| |
| | |
This code really needs to be review as it's convoluted for no good reason.
|
| |
| |
| |
| | |
What is modified as boolean, should also be displayed as boolean.
|
| |
| |
| |
| |
| |
| |
| | |
From now on, we always display the given object's type instead of just reporting "object".
Additionally, make the format of return type errors match the format of argument errors.
Closes GH-5625
|
| | |
|
| |
| |
| |
| | |
Closes GH-5512
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
This deprecates:
ReflectionParameter::isArray()
ReflectionParameter::isCallable()
ReflectionParameter::getClass()
These APIs have been superseded by ReflectionParameter::getType()
since PHP 7.0. Types introduced since that time are not available
through the old APIs, and their behavior is getting increasingly
confusing. This is how they interact with PHP 8 union types:
* isArray() will return true if the type is array or ?array,
but not any other union type
* Same for isCallable().
* getClass() will return a class for T|int etc, as long as the
union only contains a single type. T1|T2 will return null.
This behavior is not particularly reasonable or useful, and will
get more confusing as new type system extensions are added.
Closes GH-5209.
|
| |
| |
| |
| |
| |
| |
| |
| | |
From now on, float to string casting will always behave locale-independently.
RFC: https://wiki.php.net/rfc/locale_independent_float_to_string
Closes GH-5224
Co-authored-by: George Peter Banyard <girgias@php.net>
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| | |
5.4.0
Fix [-Werror=maybe-uninitialized] compilation warnings on big endian system
Closes GH-5373
|
| |
| |
| |
| |
| |
| |
| |
| | |
Little and Big endian files have their own designated folder.
Both use the ASCII charset family.
We may want to add a big-endian/EBCDIC charset family resource bundle in the future.
The build script is currently left untouched as it seems to mostly be for Windows.
|
| |
| |
| |
| | |
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>
|
| | |
|
| |
| |
| |
| | |
Closes GH-5322
|