summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
Commit message (Collapse)AuthorAgeFilesLines
* Fixed bug #75186Nikita Popov2019-05-091-21/+20
|
* Fixed bug #77882Nikita Popov2019-04-151-0/+8
|
* Fixed bug #77772Nikita Popov2019-03-221-14/+12
|
* Trim trailing whitespace in source code filesPeter Kokot2018-10-131-5/+5
|
* Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-10-031-7/+5
|\
| * Reflection: Copy invoke function also in the variadic caseNikita Popov2018-10-031-7/+5
| | | | | | | | | | It doesn't matter how the parameters are provided, we always have to copy the trampoline invoke function.
* | Fixed bug #66430Nikita Popov2018-10-021-0/+10
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Christoph M. Becker2018-09-051-2/+4
|\ \ | |/ | | | | | | * PHP-7.1: Fix #74454: Wrong exception being thrown when using ReflectionMethod
| * Fix #74454: Wrong exception being thrown when using ReflectionMethodChristoph M. Becker2018-09-051-2/+4
| | | | | | | | | | If zend_throw_exception_ex() already threw an exception, we should not throw again.
* | Merge branch 'PHP-7.1' into PHP-7.2Nikita Popov2018-07-021-1/+1
|\ \ | |/
| * Fixed bug #75231Nikita Popov2018-07-021-1/+1
| | | | | | | | The behavior is now consistent with ReflectionMethod.
* | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2018-06-281-1/+1
|\ \ | |/ | | | | | | * PHP-7.1: Fixed bug #76536 (PHP crashes with core dump when throwing exception in error handler). (Laruence)
| * Fixed bug #76536 (PHP crashes with core dump when throwing exception in ↵Xinchen Hui2018-06-281-1/+1
| | | | | | | | error handler). (Laruence)
| * year++Xinchen Hui2018-01-021-1/+1
| |
* | year++Xinchen Hui2018-01-021-1/+1
| |
* | Revert BC break caused by fixing bug #74035Michael Moravec2017-11-061-3/+3
| | | | | | | | This reverts commit 9ffc6ca62f53431a4b32b30cdda8180142f47cdb.
* | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2017-07-271-1/+16
|\ \ | |/ | | | | | | | | * PHP-7.1: Update NEWS Fixed bug #74949 (null pointer dereference in _function_string)
| * Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-07-271-1/+16
| |\ | | | | | | | | | | | | * PHP-7.0: Fixed bug #74949 (null pointer dereference in _function_string)
| | * Fixed bug #74949 (null pointer dereference in _function_string)Xinchen Hui2017-07-271-1/+16
| | |
* | | Remove superfluous semicolonsTom Van Looy2017-06-261-1/+1
| | |
* | | code de-duplication in ReflectionType::__toString and ↵Remi Collet2017-06-151-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | Allow ReflectionClass::isIterable() to return true for TraversablesSara Golemon2017-05-311-1/+6
| | | | | | | | | | | | | | | Current behavior is essentially "Is an INTERNAL iterable class". This change allows isIterable() to return true for userspace classes as well.
* | | Rename ReflectionClass::isIterateable() to isIterable()Sara Golemon2017-05-311-4/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge branch 'PHP-7.1'Xinchen Hui2017-05-311-1/+7
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * PHP-7.1: Update NEWS Fixed bug #74673 (Segfault when cast Reflection object to string with undefined constant) Conflicts: ext/reflection/php_reflection.c
| * | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-05-311-1/+7
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | * PHP-7.0: Fixed bug #74673 (Segfault when cast Reflection object to string with undefined constant) Conflicts: ext/reflection/php_reflection.c
| | * Fixed bug #74673 (Segfault when cast Reflection object to string with ↵Xinchen Hui2017-05-311-2/+8
| | | | | | | | | | | | undefined constant)
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-02-121-3/+3
| |\ \ | | |/
| | * Revert "Fixed bug #74035"Nikita Popov2017-02-121-3/+3
| | | | | | | | | | | | This reverts commit 9ffc6ca62f53431a4b32b30cdda8180142f47cdb.
* | | Don't leak internal flags in reflectionNikita Popov2017-04-221-3/+8
| | | | | | | | | | | | | | | If someone complains, we may re-expose specific flags while also adding corresponding class constants for them.
* | | ReflectionGenerator now sends ReflectionException as expectedJulien Pauli2017-02-071-2/+2
| | |
* | | Merge branch 'PHP-7.1'Nikita Popov2017-02-031-3/+3
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-02-031-3/+3
| |\ \ | | |/
| | * Fixed bug #74035andrewnester2017-02-031-3/+3
| | |
* | | Merge branch 'PHP-7.1'Joe Watkins2017-01-181-1/+1
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fix ce comparison
| * | Merge branch 'PHP-7.0' into PHP-7.1Joe Watkins2017-01-181-1/+1
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fix ce comparison
| | * Fix ce comparisonThomas Punt2017-01-181-1/+1
| | |
| | * Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | |
| * | Update copyright headers to 2017Sammy Kaye Powers2017-01-041-1/+1
| | |
* | | Introduced "zend_type" - an abstraction for type-hinting representation.Dmitry Stogov2017-01-131-58/+30
| | |
* | | Fix memory error in reflection exportNikita Popov2017-01-121-15/+11
| | | | | | | | | | | | | | | Also simplify code while at it ... no point in going through a smart_str for a single printf.
* | | Update copyright headers to 2017Sammy Kaye Powers2017-01-021-1/+1
| | |
* | | Switch reflection to use smart_strNikita Popov2017-01-011-311/+227
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of yet-another-smart-string-implementation. Expand the smart_str API by: * smart_str_extract() which gets a finalized zend_string* from a smart_str, including insertion of the zero byte and handling of the empty string case. This should be preferred over using smart_str_0() in conjunction with str.s. * smart_str_get_len() which gets the length of the smart_str with handling of the empty string case.
* | | Reduce redundant storage of required number of parameters to required flagBarbu Paul - Gheorghe2016-12-261-11/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The required field, until now, stored how many required parameters the function, it belongs to, has. I think this is rather problematic because it's a feature of the function to know how many required parameters it has, not of the parameter itself. The parameter should only say if it's required or optional (among other unrelated things). Also storing the function's number of required parameters in every parameter was redundant since the _zend_function structure already has that information. And storing the same value (number of required parameters) across multiple variables is inefficient and could lead to inconsistencies.
* | | Drop some dead code in ext/reflectionNikita Popov2016-12-211-17/+0
|/ /
* | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2016-12-181-0/+10
|\ \ | |/
| * Fix bug #46103Nikita Popov2016-12-181-0/+10
| |
* | Intriduced ZEND_ACC_INHERITED class flag.Dmitry Stogov2016-11-011-1/+1
| | | | | | | | It's going to be helpful for static optimisations, when "parent" is not known yet.
* | Unwrap reference returns in cufa etcNikita Popov2016-09-301-0/+9
| |
* | Don't mark ReflectionType::__toString() as deprecated for nowNikita Popov2016-09-281-1/+4
| |
* | Revert ReflectionType::__toString() behavior + deprecateNikita Popov2016-09-281-12/+2
| |