summaryrefslogtreecommitdiff
path: root/ext/reflection/php_reflection.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch 'PHP-7.0'Nikita Popov2016-07-131-11/+19
|\
| * Merge branch 'PHP-5.6' into PHP-7.0Nikita Popov2016-07-131-5/+9
| |\ | | | | | | | | | | | | Conflicts: ext/reflection/php_reflection.c
| | * fix: bug72222 for PHP-5.6 reflection export of array constsnikita22062016-07-131-11/+16
| | |
* | | Merge branch 'throw-error-in-extensions'Aaron Piotrowski2016-07-051-10/+12
|\ \ \
| * | | Add missed return replacing bail outAaron Piotrowski2016-06-291-1/+1
| | | |
| * | | Replace zend_ce_error with NULL and replace more E_ERROR with thrown ErrorAaron Piotrowski2016-06-131-6/+6
| | | |
| * | | Merge branch 'master' into throw-error-in-extensionsAaron Piotrowski2016-06-101-243/+507
| |\ \ \
| * | | | Convert E_ERROR to thrown Error in extensionsAaron Piotrowski2015-07-051-10/+12
| | | | |
* | | | | Fixed compilation warningsDmitry Stogov2016-06-281-3/+1
| | | | |
* | | | | Fixed compilation warningsDmitry Stogov2016-06-221-1/+1
| |/ / / |/| | |
* | | | fix #72209 (ReflectionProperty::getValue() doesn't fail if object doesn't ↵Joe Watkins2016-05-141-0/+5
| | | | | | | | | | | | | | | | match type)
* | | | Merge branch 'PHP-7.0'Nikita Popov2016-05-101-3/+10
|\ \ \ \ | | |/ / | |/| | | | | | | | | | Conflicts: ext/reflection/php_reflection.c
| * | | Fixed bug #72174Nikita Popov2016-05-101-2/+6
| | | | | | | | | | | | | | | | Also fixes a memory leak if ::getValue() is used with __get().
| * | | Merge branch 'PHP-7.0' of https://github.com/php/php-src into PHP-7.0Joe Watkins2016-01-201-1/+1
| |\ \ \
| * | | | fix ReflectionClass::__toString doc block omittedJoe Watkins2016-01-201-1/+1
| | | | |
* | | | | Add missing update_constants in ReflectionClassConstantNikita Popov2016-05-021-5/+12
| | | | | | | | | | | | | | | | | | | | Also fix indentation of __toString().
* | | | | Revert code to use DUP instead of COPYNikita Popov2016-04-291-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In a1c405e0c50c627cdd9a7695b4c7d644238b6b9b next to the actual fix I have also switched some (effective) ZVAL_DUPs to ZVAL_COPYs. I'm reverting this part as those were probably there for a reason (presumably issues with non-atomic refcounting on ZTS).
* | | | | Fix usages of zend_update_constant_exNikita Popov2016-04-291-3/+1
| | | | | | | | | | | | | | | | | | | | | | | | | If an in-place update in an external zval is performed, it needs to incref'd beforehand, not afterwards.
* | | | | - get rid of EG(scope). zend_get_executed_scope() should be used instead.Dmitry Stogov2016-04-281-25/+17
| | | | | | | | | | | | | | | | | | | | - ichanged zval_update_constant_ex(). Use IS_TYPE_IMMUTABLE flag on shared constants and AST, instead of "inline_change" parameter.
* | | | | Removed "zend_fcall_info.function_table". It was assigned in many places, ↵Dmitry Stogov2016-04-271-8/+0
| | | | | | | | | | | | | | | | | | | | but is never used.
* | | | | Remove IS_VAR_RET_REF flagNikita Popov2016-04-151-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead decide whether a function returned by reference or by value by checking whether the return value has REFERENCE type. This means that functions returning by reference must always return a reference and functions returning by value must not return a reference.
* | | | | Merge zend_execute_data->called_scope into zend_execute_data->This.Dmitry Stogov2016-04-011-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | "called_scope" made sense only for static method calls, for dynamic calls it was always equal to the class of $this. Now EG(This) may store IS_OBJECT + $this or IS_UNUSED + "called_scope" (of course, "called_scope" may be NULL). Some code might need to be adopted to support this change. Checks (Z_OBJ(EX(This))) might need to be converted into (Z_TYPE(EX(This)) == IS_OBJECT).
* | | | | Removed zend_fcall_info.symbol_tableDmitry Stogov2016-03-021-7/+0
| | | | |
* | | | | Support void return type in reflectionAndrea Faulds2016-01-281-0/+1
| | | | |
* | | | | fix ReflectionClass::__toString doc block omittedJoe Watkins2016-01-201-1/+1
| | | | |
* | | | | Merge branch 'PHP-7.0'Lior Kaplan2016-01-011-1/+1
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | * PHP-7.0: Update header to PHP Version 7 Happy new year (Update copyright to 2016) Happy new year (Update copyright to 2016)
| * | | | Merge branch 'PHP-5.6' into PHP-7.0Lior Kaplan2016-01-011-1/+1
| |\ \ \ \ | | |/ / / | |/| | / | | | |/ | | |/| * PHP-5.6: Happy new year (Update copyright to 2016)
| | * | Happy new year (Update copyright to 2016)Lior Kaplan2016-01-011-1/+1
| | | |
| | * | Fixed the third one of (segfault in gc_remove_from_buffer())Xinchen Hui2015-10-031-9/+15
| | | | | | | | | | | | | | | | | | | | This one maybe only used in debug mode, so no bug report and no test script provided
| | * | Fixed bug #70631 (Another Segfault in gc_remove_from_buffer())Xinchen Hui2015-10-031-1/+29
| | | |
| | * | bump yearXinchen Hui2015-01-151-1/+1
| | | |
| * | | Remove useless checkXinchen Hui2015-12-091-34/+3
| | | |
* | | | Removed useless checksDmitry Stogov2015-12-081-39/+4
| | | |
* | | | Implemented the RFC `Support Class Constant Visibility`.Dmitry Stogov2015-12-081-14/+334
|/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Squashed commit of the following: commit f11ca0e7a57793fa0e3e7f6d451720e6c42bb0b9 Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Dec 8 12:38:42 2015 +0300 Fixed test expectation commit 211f873f542504d0a0f72b6b5cb23908a1c99a2d Author: Dmitry Stogov <dmitry@zend.com> Date: Tue Dec 8 12:28:38 2015 +0300 Embed zend_class_constant.flags into zend_class_constants.value.u2.access_flags commit 51deab84b2cdbf9cdb1a838cf33b2ee45c61748b Author: Dmitry Stogov <dmitry@zend.com> Date: Mon Dec 7 11:18:55 2015 +0300 Fixed issues found by Nikita commit 544dbd5b47e40d38a8ccb96bc5583e9cb7fdd723 Author: Dmitry Stogov <dmitry@zend.com> Date: Sat Dec 5 02:41:05 2015 +0300 Refactored immplementation of https://wiki.php.net/rfc/class_const_visibility @reeze created an RFC here and I emailed internals here and didn't get any responses positive/negative.
* | | Fixed bug #71018 (ReflectionProperty::setValue() behavior changed)Xinchen Hui2015-12-041-22/+7
| | |
* | | Fixed bug #70982 (setStaticPropertyValue behaviors inconsistently with 5.6)Xinchen Hui2015-11-271-0/+1
| | |
* | | IndentsXinchen Hui2015-10-231-120/+120
| | |
* | | Fix boolean conversion warningsc9s2015-10-231-10/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Summary: The compiler complains and raised some warnings about boolean conversion: warning: address of 'ce->constants_table' will always evaluate to 'true' [-Wpointer-bool-conversion] Since the address of 'HashTable' will always evaluate to true. the condition should be removed. The scope is kept for local variables. Platform: OS X 10.11 Compiler: Apple LLVM version 7.0.0 (clang-700.0.72) Target: x86_64-apple-darwin15.0.0 Thread model: posix
* | | Do not create a fake Closure for real ClosuresBob Weinand2015-10-141-1/+6
| | | | | | | | | | | | That is solved by just returning the Closure as is, which is safe due to Closures being immutable objects
* | | Forbid "fake" closure rebindingDmitry Stogov2015-10-121-3/+3
| | |
* | | Get rid of implicit type casting in GC_*() macros in Zend/zend_types.h.Dmitry Stogov2015-08-131-1/+1
| |/ |/| | | | | | | | | This prevented compilation warnings and disclosed few incorrect usages in Zend/zend_vm_def.h and ext/dom/xpath.c. Now explicit type casting may be required on call site. This may break some C extension code, but it shoulfn't be a problem to add explicit casting.
* | Switch position of ce in exception ce variable namesAaron Piotrowski2015-07-031-1/+1
| |
* | Change zend_exception_get_default() to zend_exception_ceAaron Piotrowski2015-07-031-1/+1
| |
* | Use ZSTR_ API to access zend_string elements (this is just renaming without ↵Dmitry Stogov2015-06-301-107/+107
| | | | | | | | semantick changes).
* | Fix more proto commentsRasmus Lerdorf2015-06-231-2/+2
| |
* | Drop now superflous check for VIA_TRAMPOLINENikita Popov2015-06-161-3/+1
| | | | | | | | This is not handled by USE_ARG_INFO.
* | Fixed bug #69802 (Reflection on Closure::__invoke borks type hint class ↵Dmitry Stogov2015-06-161-1/+1
| | | | | | | | name) (onr more problem)
* | Complete fix for problems related to bug #69802Dmitry Stogov2015-06-161-13/+17
| |
* | Fixed bug #69802 (Reflection on Closure::__invoke borks type hint class name)Dmitry Stogov2015-06-151-2/+6
| |
* | Get rid of more ZVAL_ZVAL() macrosDmitry Stogov2015-06-121-4/+7
| |