History log of /php-src/ext/reflection/php_reflection.c (Results 226 – 250 of 1058)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
(<<< Hide modified files)
(Show modified files >>>)
# ef439ec8 27-Oct-2019 Christoph M. Becker

Add missing zend_parse_parameters_none()

# c9fc076a 13-Oct-2019 Thomas Gerbet

Add stubs for ext-reflection

# 530a8a38 21-Oct-2019 Nikita Popov

Fix and undeprecate ReflectionType::__toString()

Add deprecated _ZendTestClass::__toString() method to preserve
an existing test.

ReflectionType::__toString() will now return a

Fix and undeprecate ReflectionType::__toString()

Add deprecated _ZendTestClass::__toString() method to preserve
an existing test.

ReflectionType::__toString() will now return a complete
representation of the type, as it should have originally. Users
that relied on nullability being absent should have been pushed
to ReflectionNamedType::getName() by the deprecation of
ReflectionType::__toString() in PHP 7.1 / PHP 7.4.

show more ...

# 174ab25f 21-Oct-2019 Joe Watkins

Merge branch 'PHP-7.4'

* PHP-7.4:
Fix bug #78697: inaccurate error message


# 1ac961be 21-Oct-2019 Joe Watkins

Merge branch 'PHP-7.3' into PHP-7.4

* PHP-7.3:
Fix bug #78697: inaccurate error message


# 1c9b62fb 21-Oct-2019 Joe Watkins

Merge branch 'PHP-7.2' into PHP-7.3

* PHP-7.2:
Fix bug #78697: inaccurate error message


# bea2ff88 19-Oct-2019 Fabien Villepinte

Fix bug #78697: inaccurate error message

# c9d4696f 07-Oct-2019 Nikita Popov

Merge branch 'PHP-7.4'


# f085bddb 07-Oct-2019 Nikita Popov

Fix number of required arguments in arginfo

* pack() only requires one argument
* stream_context_set_option() only requires two arguments
* ReflectionMethod::getClosure() accepts no

Fix number of required arguments in arginfo

* pack() only requires one argument
* stream_context_set_option() only requires two arguments
* ReflectionMethod::getClosure() accepts no args for static methods
* DOMDocument::createProcessingInstruction() only requires one arg
* DOMImplementation::createDocument() only requires two arguments
* DOMDocument::importNode() only requires one arg
* mysql_get_client_version() doesn't accept any args,
despite what the docs say...

show more ...

# 5d6e923d 24-Sep-2019 Gabriel Caruso

Remove mention of PHP major version in Copyright headers

Closes GH-4732.

# 0c7124e6 23-Sep-2019 Christoph M. Becker

Add check_only parameter to get_closure handler

`get_closure` handlers are called to check whether an object is
callable, and to actually get the closure, respectively. The behavior

Add check_only parameter to get_closure handler

`get_closure` handlers are called to check whether an object is
callable, and to actually get the closure, respectively. The behavior
of the handler might differ for these two cases, particularly the
handler may throw in the latter case, but should not in the former.

Therefore we add a `check_only` parameter, to be able to distinguish
the desired purpose.

show more ...

# 6276dd82 23-Sep-2019 Nikita Popov

Use ZEND_TYPE_IS_SET() when checking for property types

Instead of a simple if or 0 comparison. This would no longer work
if zend_type is a struct.

# 3012d006 23-Sep-2019 Nikita Popov

Don't set nullability flag for parameters without type

Use value 0 instead. To compensate we check in ReflectionParameter
allowsNull() whether the type is set at all: If it isn't, it alw

Don't set nullability flag for parameters without type

Use value 0 instead. To compensate we check in ReflectionParameter
allowsNull() whether the type is set at all: If it isn't, it always
allows null.

This removes a discrepancy between internal&userland functions:
For userland functions allowsNull() on untyped parameters returned
true, but for internal functions it returned false.

show more ...

# 8d7911ef 20-Sep-2019 Nikita Popov

Standardize type printing in reflection

Use ?T instead of "T or NULL".

# 9e8ba789 19-Sep-2019 Nikita Popov

Change representation of zend_type from type code to MAY_BE_* mask

This switches zend_type from storing a single IS_* type code to
storing a MAY_BE_* type mask. Right now most code still

Change representation of zend_type from type code to MAY_BE_* mask

This switches zend_type from storing a single IS_* type code to
storing a MAY_BE_* type mask. Right now most code still assumes
that there is only a single type in the mask (or two together
with MAY_BE_NULL). But this will make it a lot simpler to introduce
union types.

An additional advantage (and why I'm doing this separately), is
that a number of special cases no longer need to be handled
separately: We can do a single mask & (1 << type) check to handle
all simple types, booleans (true|false) and null.

show more ...

Revision tags: php-7.4.0RC2, php-7.2.23RC1, php-7.3.10RC1, php-7.4.0RC1
# 4fc4249d 02-Sep-2019 Nikita Popov

Make ReflectionType an abstract class

This is never instantiated directly, only child classes are used.

# bdf2cd75 02-Sep-2019 Nikita Popov

Move isBuiltin() method from ReflectionType to ReflectionNamedType

This method only makes sense for single types, e.g. it would be
meaningless for union types.

Note that we alwa

Move isBuiltin() method from ReflectionType to ReflectionNamedType

This method only makes sense for single types, e.g. it would be
meaningless for union types.

Note that we always return ReflectionNamedType right now, so this does
not break compatibility for code using any currently existing types.

show more ...

Revision tags: php-7.1.32, php-7.2.22, php-7.3.9, php-7.4.0beta4, php-7.2.22RC1, php-7.3.9RC1
# d0f4ec4c 13-Aug-2019 Nikita Popov

Merge branch 'PHP-7.4'


# d891b5f4 13-Aug-2019 Nikita Popov

Fixed bug #78410

Revision tags: php-7.4.0beta2, php-7.1.31, php-7.2.21, php-7.3.8, php-7.4.0beta1
# 7a1540fa 22-Jul-2019 Nikita Popov

Merge branch 'PHP-7.4'


# c817b802 22-Jul-2019 Nikita Popov

Special-case rc=1 self-referential arrays in ReflectionReference

New fix for bug #78263. This is special-cased elsewhere in the engine,
so we need to mirror it here.

# 19588a8f 22-Jul-2019 Nikita Popov

Revert "Add ReflectionReference::getRefcount()"

This reverts commit 428cfdd1810b17f0064b7691276f0eb92dc963b6.

# 36db71df 22-Jul-2019 Nikita Popov

Merge branch 'PHP-7.4'


Revision tags: php-7.2.21RC1, php-7.3.8RC1
# 3121b717 11-Jul-2019 Nikita Popov

Deprecate Reflection export() methods

And remove the Reflector::export() interface method.

# 390810e1 22-Jul-2019 Dmitry Stogov

Merge branch 'PHP-7.4'

* PHP-7.4:
Evaluate constant in class scope


12345678910>>...43