Skip to content

Commit 144ba8b

Browse files
authored
zend_ast: Remove unused ZEND_AST_PARENT_PROPERTY_HOOK_CALL (php#21644)
1 parent b685fb2 commit 144ba8b

4 files changed

Lines changed: 1 addition & 11 deletions

File tree

UPGRADING.INTERNALS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ PHP 8.6 INTERNALS UPGRADE NOTES
8383
. The INI_ORIG_{INT|STR|FLT|BOOL}() macros have been removed as they are
8484
unused. If this behaviour is required fall back to the zend_ini_*
8585
functions.
86+
. The unused ZEND_AST_PARENT_PROPERTY_HOOK_CALL has been removed.
8687

8788
========================
8889
2. Build system changes

Zend/zend_ast.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2555,12 +2555,6 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
25552555
smart_str_appendc(str, ')');
25562556
break;
25572557
}
2558-
case ZEND_AST_PARENT_PROPERTY_HOOK_CALL:
2559-
smart_str_append(str, Z_STR_P(zend_ast_get_zval(ast->child[0])));
2560-
smart_str_appendc(str, '(');
2561-
zend_ast_export_ex(str, ast->child[1], 0, indent);
2562-
smart_str_appendc(str, ')');
2563-
break;
25642558
case ZEND_AST_CALLABLE_CONVERT: {
25652559
zend_ast_fcc *fcc_ast = (zend_ast_fcc*)ast;
25662560
ast = fcc_ast->args;

Zend/zend_ast.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ enum _zend_ast_kind {
153153
ZEND_AST_MATCH,
154154
ZEND_AST_MATCH_ARM,
155155
ZEND_AST_NAMED_ARG,
156-
ZEND_AST_PARENT_PROPERTY_HOOK_CALL,
157156
ZEND_AST_PIPE,
158157

159158
/* 3 child nodes */

Zend/zend_compile.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12135,7 +12135,6 @@ static void zend_compile_expr_inner(znode *result, zend_ast *ast) /* {{{ */
1213512135
case ZEND_AST_METHOD_CALL:
1213612136
case ZEND_AST_NULLSAFE_METHOD_CALL:
1213712137
case ZEND_AST_STATIC_CALL:
12138-
case ZEND_AST_PARENT_PROPERTY_HOOK_CALL:
1213912138
case ZEND_AST_PIPE:
1214012139
zend_compile_var(result, ast, BP_VAR_R, false);
1214112140
return;
@@ -12292,9 +12291,6 @@ static zend_op *zend_compile_var_inner(znode *result, zend_ast *ast, uint32_t ty
1229212291
case ZEND_AST_CALL:
1229312292
zend_compile_call(result, ast, type);
1229412293
return NULL;
12295-
case ZEND_AST_PARENT_PROPERTY_HOOK_CALL:
12296-
zend_compile_parent_property_hook_call(result, ast, type);
12297-
return NULL;
1229812294
case ZEND_AST_METHOD_CALL:
1229912295
case ZEND_AST_NULLSAFE_METHOD_CALL:
1230012296
zend_compile_method_call(result, ast, type);

0 commit comments

Comments
 (0)