Skip to content

Commit 94de413

Browse files
committed
...
1 parent 62c555e commit 94de413

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Zend/zend_compile.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1920,7 +1920,7 @@ void zend_do_end_function_declaration(const znode *function_token TSRMLS_DC) /*
19201920
/* }}} */
19211921

19221922
/* {{{ */
1923-
void zend_do_function_return_hint(const znode *return_hint TSRMLS_DC) {
1923+
void zend_do_function_return_hint(znode *return_hint TSRMLS_DC) {
19241924
if (return_hint->op_type != IS_UNUSED) {
19251925
CG(active_op_array)->return_hint.used = 1;
19261926

@@ -1930,7 +1930,6 @@ void zend_do_function_return_hint(const znode *return_hint TSRMLS_DC) {
19301930
CG(active_op_array)->return_hint.class_name_len = Z_STRLEN(return_hint->u.constant);
19311931
CG(active_op_array)->return_hint.class_name = zend_new_interned_string
19321932
(Z_STRVAL(return_hint->u.constant), Z_STRLEN(return_hint->u.constant)+1, 1 TSRMLS_CC);
1933-
zval_dtor((zval*)&return_hint->u.constant);
19341933
} else {
19351934
CG(active_op_array)->return_hint.type = Z_TYPE(return_hint->u.constant);
19361935
}
@@ -1939,7 +1938,6 @@ void zend_do_function_return_hint(const znode *return_hint TSRMLS_DC) {
19391938
CG(active_op_array)->return_hint.class_name_len = Z_STRLEN(return_hint->u.constant);
19401939
CG(active_op_array)->return_hint.class_name = zend_new_interned_string
19411940
(Z_STRVAL(return_hint->u.constant), Z_STRLEN(return_hint->u.constant)+1, 1 TSRMLS_CC);
1942-
zval_dtor((zval*)&return_hint->u.constant);
19431941
}
19441942
}
19451943
} /* }}} */

Zend/zend_compile.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ void zend_do_add_variable(znode *result, const znode *op1, const znode *op2 TSRM
528528
int zend_do_verify_access_types(const znode *current_access_type, const znode *new_modifier);
529529
void zend_do_begin_function_declaration(znode *function_token, znode *function_name, int is_method, int return_reference, znode *fn_flags_znode TSRMLS_DC);
530530
void zend_do_end_function_declaration(const znode *function_token TSRMLS_DC);
531-
void zend_do_function_return_hint(const znode *return_hint TSRMLS_DC);
531+
void zend_do_function_return_hint(znode *return_hint TSRMLS_DC);
532532
void zend_do_receive_param(zend_uchar op, znode *varname, const znode *initialization, znode *class_type, zend_bool pass_by_reference, zend_bool is_variadic TSRMLS_DC);
533533
int zend_do_begin_function_call(znode *function_name, zend_bool check_namespace TSRMLS_DC);
534534
void zend_do_begin_method_call(znode *left_bracket TSRMLS_DC);

0 commit comments

Comments
 (0)