summaryrefslogtreecommitdiff
path: root/ext/reflection
Commit message (Collapse)AuthorAgeFilesLines
* Fix bug #78697: inaccurate error messageFabien Villepinte2019-10-213-31/+45
|
* Fixed bug #75186Nikita Popov2019-05-092-21/+45
|
* Fixed bug #77882Nikita Popov2019-04-152-0/+46
|
* Fixed bug #77772Nikita Popov2019-03-222-14/+34
|
* Sync leading and final newlines in *.phpt sectionsPeter Kokot2018-10-1559-73/+29
| | | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines in all *.phpt sections. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in *.phptPeter Kokot2018-10-14129-257/+257
|
* Sync leading and final newlines in source code filesPeter Kokot2018-10-141-1/+1
| | | | | | | | | | | | | | | | | | | | | | This patch adds missing newlines, trims multiple redundant final newlines into a single one, and trims redundant leading newlines. According to POSIX, a line is a sequence of zero or more non-' <newline>' characters plus a terminating '<newline>' character. [1] Files should normally have at least one final newline character. C89 [2] and later standards [3] mention a final newline: "A source file that is not empty shall end in a new-line character, which shall not be immediately preceded by a backslash character." Although it is not mandatory for all files to have a final newline fixed, a more consistent and homogeneous approach brings less of commit differences issues and a better development experience in certain text editors and IDEs. [1] http://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206 [2] https://port70.net/~nsz/c/c89/c89-draft.html#2.1.1.2 [3] https://port70.net/~nsz/c/c99/n1256.html#5.1.1.2
* Trim trailing whitespace in source code filesPeter Kokot2018-10-132-7/+7
|
* 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-022-0/+52
| |
* | Fixed bug #76936Nikita Popov2018-10-021-0/+45
| |
* | Merge branch 'PHP-7.1' into PHP-7.2Christoph M. Becker2018-09-053-2/+27
|\ \ | |/ | | | | | | * PHP-7.1: Fix #74454: Wrong exception being thrown when using ReflectionMethod
| * Fix #74454: Wrong exception being thrown when using ReflectionMethodChristoph M. Becker2018-09-053-2/+27
| | | | | | | | | | 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-022-1/+26
|\ \ | |/
| * Fixed bug #75231Nikita Popov2018-07-022-1/+26
| | | | | | | | The behavior is now consistent with ReflectionMethod.
* | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2018-06-282-1/+21
|\ \ | |/ | | | | | | * 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-282-1/+21
| | | | | | | | error handler). (Laruence)
| * year++Xinchen Hui2018-01-022-2/+2
| |
* | year++Xinchen Hui2018-01-022-2/+2
| |
* | Revert BC break caused by fixing bug #74035Michael Moravec2017-11-063-15/+4
| | | | | | | | This reverts commit 9ffc6ca62f53431a4b32b30cdda8180142f47cdb.
* | Merge branch 'PHP-7.1' into PHP-7.2Derick Rethans2017-08-161-0/+1
|\ \ | |/
| * Merge branch 'PHP-7.0' into PHP-7.1Derick Rethans2017-08-161-0/+1
| |\
| | * Fixed stupid testDerick Rethans2017-08-161-0/+1
| | |
* | | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2017-07-271-0/+27
|\ \ \ | |/ / | | | | | | | | | * PHP-7.1: Fixed test
| * | Merge branch 'PHP-7.0' into PHP-7.1Xinchen Hui2017-07-271-0/+27
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed test
| | * Fixed testXinchen Hui2017-07-271-0/+27
| | |
* | | Merge branch 'PHP-7.1' into PHP-7.2Xinchen Hui2017-07-272-1/+40
|\ \ \ | |/ / | | | | | | | | | | | | * 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-272-1/+40
| |\ \ | | |/ | | | | | | | | | * PHP-7.0: Fixed bug #74949 (null pointer dereference in _function_string)
| | * Fixed bug #74949 (null pointer dereference in _function_string)Xinchen Hui2017-07-272-1/+40
| | |
* | | Remove superfluous semicolonsTom Van Looy2017-06-261-1/+1
| | |
* | | Implement object type annotationMichał Brzuchalski2017-06-252-9/+9
| | | | | | | | | | | | RFC: https://wiki.php.net/rfc/object-typehint
* | | 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-312-5/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | 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-312-1/+29
|\ \ \ | |/ / | | | | | | | | | | | | | | | | | | | | | * 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-312-1/+29
| |\ \ | | |/ | | | | | | | | | | | | | | | | | | * 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-312-2/+30
| | | | | | | | | | | | undefined constant)
| * | Test ReflectionType support of iterableAndrea Faulds2017-04-291-0/+2
| | |
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-02-123-15/+4
| |\ \ | | |/
| | * Revert "Fixed bug #74035"Nikita Popov2017-02-123-15/+4
| | | | | | | | | | | | This reverts commit 9ffc6ca62f53431a4b32b30cdda8180142f47cdb.
* | | Test ReflectionType support of iterableAndrea Faulds2017-04-291-0/+2
| | |
* | | Don't leak internal flags in reflectionNikita Popov2017-04-225-47/+52
| | | | | | | | | | | | | | | If someone complains, we may re-expose specific flags while also adding corresponding class constants for them.
* | | Fix reflection test after flag removalNikita Popov2017-04-221-2/+2
| | | | | | | | | | | | Reflection is leaking internal flags...
* | | ReflectionGenerator now sends ReflectionException as expectedJulien Pauli2017-02-073-2/+44
| | |
* | | Deprecate __autoload()Nikita Popov2017-02-033-9/+7
| | |
* | | Merge branch 'PHP-7.1'Nikita Popov2017-02-033-4/+15
|\ \ \ | |/ /
| * | Merge branch 'PHP-7.0' into PHP-7.1Nikita Popov2017-02-033-4/+15
| |\ \ | | |/
| | * Fixed bug #74035andrewnester2017-02-033-4/+15
| | |
* | | Remove obsolete version checks from testsNikita Popov2017-02-024-12/+4
| | |