History log of /PHP-7.3/ext/reflection/php_reflection.c (Results 51 – 75 of 698)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 9e709e2f 14-Dec-2017 Dmitry Stogov

Move constants into read-only data segment


Revision tags: php-7.2.1RC1, php-7.1.13RC1, php-7.0.27RC1
# 084c17fe 29-Nov-2017 Dmitry Stogov

Use zend_string_tolower() where it's possible (to avoid reallocations).
Allow zend_string_tolower_ex() to create parsistent strings


Revision tags: php-7.2.0
# b72b1a4e 25-Nov-2017 Nikita Popov

Add zend_object_alloc() API

Using ecalloc() to create objects is expensive, because the
dynamic-size memset() is unreasonably slow. Make sure we only
zero the main object structure w

Add zend_object_alloc() API

Using ecalloc() to create objects is expensive, because the
dynamic-size memset() is unreasonably slow. Make sure we only
zero the main object structure with known size, as the properties
are intialized separately anyway.

Technically we do not need to zero the embedded zend_object
structure either, but as long as the memset argument is constant,
a couple more bytes don't really matter.

show more ...


Revision tags: php-7.1.12, php-7.0.26
# ccc12b82 16-Nov-2017 Dmitry Stogov

Avoid unnecessary reference-counting on strings.


Revision tags: php-7.1.12RC1, php-7.2.0RC6, php-7.0.26RC1
# f70ca770 02-Nov-2017 Michael Moravec

Revert BC break caused by fixing bug #74035

This reverts commit 9ffc6ca62f53431a4b32b30cdda8180142f47cdb.


# a8a17a72 01-Nov-2017 Xinchen Hui

RC manipulation cleanup


# fcb13fab 31-Oct-2017 Dmitry Stogov

Avoid reference counting (the value may be a persistent string)


# 5b044aac 31-Oct-2017 Nikita Popov

Use known strings for reflection properties


# 7b16205f 30-Oct-2017 Nikita Popov

Remove some unnecessary duplications


# fcc08ce1 30-Oct-2017 Dmitry Stogov

Prevent reference-counting on persistent zvals (internal constants, default properties and constants of internal classes).
New macro ZVAL_COPY_OR_DUP() is used perform duplication, if necessary.

Prevent reference-counting on persistent zvals (internal constants, default properties and constants of internal classes).
New macro ZVAL_COPY_OR_DUP() is used perform duplication, if necessary.
This should eliminate related race-coditions in ZTS build and prevent reference-counting bugs after unclean shutdown.

show more ...


# 49ea143b 26-Oct-2017 Dmitry Stogov

Encapsulate reference-counting primitives.
Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead.
Added mactros to validate reference-count

Encapsulate reference-counting primitives.
Prohibit direct update of GC_REFCOUNT(), GC_SET_REFCOUNT(), GC_ADDREF() and GC_DELREF() shoukf be instead.
Added mactros to validate reference-counting (disabled for now).
These macros are going to be used to eliminate race-condintions during reference-counting on data shared between threads.

show more ...


Revision tags: php-7.1.11, php-5.6.32, php-7.2.0RC5
# 9cf87aa1 24-Oct-2017 Dmitry Stogov

Avoid HashTable allocations for empty arrays (using zend_empty_array).


Revision tags: php-7.0.25, php-7.1.11RC1, php-7.2.0RC4
# ef5ea487 10-Oct-2017 Dmitry Stogov

Always use IS_CONSTANT_AST (IS_CONSTANT is removed).


Revision tags: php-7.0.25RC1
# e70618af 04-Oct-2017 Dmitry Stogov

Changed the way VM accesses constant operands in 64-bit builds.


Revision tags: php-7.1.10, php-7.2.0RC3, php-7.0.24
# c900764e 13-Sep-2017 Sammy Kaye Powers

Fix type-o in ext/reflection comment :speech_balloon:


Revision tags: php-7.2.0RC2, php-7.1.10RC1, php-7.0.24RC1, php-7.1.9, php-7.2.0RC1, php-7.0.23, php-7.1.9RC1, php-7.2.0beta3, php-7.0.23RC1, php-7.1.8, php-7.2.0beta2, php-7.0.22
# e36c04ef 27-Jul-2017 Xinchen Hui

Fixed bug #74949 (null pointer dereference in _function_string)


Revision tags: php-7.1.8RC1, php-7.2.0beta1, php-7.0.22RC1, php-5.6.31, php-7.0.21, php-7.1.7, php-7.2.0alpha3
# 04fb3f28 25-Jun-2017 Tom Van Looy

Remove superfluous semicolons


Revision tags: php-7.1.7RC1, php-7.0.21RC1, php-7.2.0alpha2
# fdfc5c1b 15-Jun-2017 Remi Collet

code de-duplication in ReflectionType::__toString and ReflectionNamedType::getName

This code duplication introduce an inconsistency in displayed type name
- bool (reflection) vs boolean

code de-duplication in ReflectionType::__toString and ReflectionNamedType::getName

This code duplication introduce an inconsistency in displayed type name
- bool (reflection) vs boolean
- int (reflection) vs integer

And reflection already use zend_get_type_by_const in other methods...

Inconsistenty is kept for BC reason.
Could be fixed in 8.0

show more ...


Revision tags: php-7.1.6, php-7.2.0alpha1, php-7.0.20
# d1cfd87f 31-May-2017 Sara Golemon

Allow ReflectionClass::isIterable() to return true for Traversables

Current behavior is essentially "Is an INTERNAL iterable class".
This change allows isIterable() to return true for us

Allow ReflectionClass::isIterable() to return true for Traversables

Current behavior is essentially "Is an INTERNAL iterable class".
This change allows isIterable() to return true for userspace classes as well.

show more ...


# c1500f85 31-May-2017 Sara Golemon

Rename ReflectionClass::isIterateable() to isIterable()

Iterateable is not a word.
Add the correct spelling, but keep the original one around
for BC purposes.

Perhaps we can

Rename ReflectionClass::isIterateable() to isIterable()

Iterateable is not a word.
Add the correct spelling, but keep the original one around
for BC purposes.

Perhaps we can add ZEND_ACC_DEPRECATED at some later date
and even remove it from PHP 8.

show more ...


# 9c5717d0 31-May-2017 Xinchen Hui

Fixed bug #74673 (Segfault when cast Reflection object to string with undefined constant)


Revision tags: php-7.1.6RC1, php-7.0.20RC1, php-7.1.5, php-7.0.19, php-7.0.19RC1, php-7.1.5RC1
# d5c6fcc3 22-Apr-2017 Nikita Popov

Don't leak internal flags in reflection

If someone complains, we may re-expose specific flags while also
adding corresponding class constants for them.


Revision tags: php-7.1.4, php-7.0.18, php-7.1.4RC1, php-7.0.18RC1, php-7.1.3, php-7.0.17, php-7.1.3RC1, php-7.0.17RC1, php-7.1.2, php-7.0.16
# eb1373e5 12-Feb-2017 Nikita Popov

Revert "Fixed bug #74035"

This reverts commit 9ffc6ca62f53431a4b32b30cdda8180142f47cdb.


# ed4216c9 07-Feb-2017 Julien Pauli

ReflectionGenerator now sends ReflectionException as expected


# 9ffc6ca6 03-Feb-2017 andrewnester

Fixed bug #74035


12345678910>>...28