diff options
Diffstat (limited to 'ext/reflection/php_reflection.c')
-rw-r--r-- | ext/reflection/php_reflection.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/ext/reflection/php_reflection.c b/ext/reflection/php_reflection.c index 13003cae84..6471e4aa2a 100644 --- a/ext/reflection/php_reflection.c +++ b/ext/reflection/php_reflection.c @@ -657,7 +657,7 @@ static zend_op* _get_recv_op(zend_op_array *op_array, uint32_t offset) ++offset; while (op < end) { if ((op->opcode == ZEND_RECV || op->opcode == ZEND_RECV_INIT - || op->opcode == ZEND_RECV_VARIADIC) && op->op1.num == (zend_long)offset) + || op->opcode == ZEND_RECV_VARIADIC) && op->op1.num == offset) { return op; } @@ -1398,7 +1398,6 @@ static void reflection_class_constant_factory(zend_class_entry *ce, zend_string static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *ce_ptr, int ctor_argc) { zval reflector; - zval output, *output_ptr = &output; zval *argument_ptr, *argument2_ptr; zval retval, params[2]; int result; @@ -1455,9 +1454,8 @@ static void _reflection_export(INTERNAL_FUNCTION_PARAMETERS, zend_class_entry *c } /* Call static reflection::export */ - ZVAL_BOOL(&output, return_output); ZVAL_COPY_VALUE(¶ms[0], &reflector); - ZVAL_COPY_VALUE(¶ms[1], output_ptr); + ZVAL_BOOL(¶ms[1], return_output); ZVAL_STRINGL(&fci.function_name, "reflection::export", sizeof("reflection::export") - 1); fci.object = NULL; |