Commit 144ba8bed3f for php.net
commit 144ba8bed3f6074239bd069af9bd752fdd462557
Author: Tim Düsterhus <tim@bastelstu.be>
Date: Sun Apr 5 22:59:05 2026 +0200
zend_ast: Remove unused `ZEND_AST_PARENT_PROPERTY_HOOK_CALL` (#21644)
diff --git a/UPGRADING.INTERNALS b/UPGRADING.INTERNALS
index 1072d822ee4..2b8484011e3 100644
--- a/UPGRADING.INTERNALS
+++ b/UPGRADING.INTERNALS
@@ -83,6 +83,7 @@ PHP 8.6 INTERNALS UPGRADE NOTES
. The INI_ORIG_{INT|STR|FLT|BOOL}() macros have been removed as they are
unused. If this behaviour is required fall back to the zend_ini_*
functions.
+ . The unused ZEND_AST_PARENT_PROPERTY_HOOK_CALL has been removed.
========================
2. Build system changes
diff --git a/Zend/zend_ast.c b/Zend/zend_ast.c
index e6270262e45..58aae4b22b5 100644
--- a/Zend/zend_ast.c
+++ b/Zend/zend_ast.c
@@ -2555,12 +2555,6 @@ static ZEND_COLD void zend_ast_export_ex(smart_str *str, zend_ast *ast, int prio
smart_str_appendc(str, ')');
break;
}
- case ZEND_AST_PARENT_PROPERTY_HOOK_CALL:
- smart_str_append(str, Z_STR_P(zend_ast_get_zval(ast->child[0])));
- smart_str_appendc(str, '(');
- zend_ast_export_ex(str, ast->child[1], 0, indent);
- smart_str_appendc(str, ')');
- break;
case ZEND_AST_CALLABLE_CONVERT: {
zend_ast_fcc *fcc_ast = (zend_ast_fcc*)ast;
ast = fcc_ast->args;
diff --git a/Zend/zend_ast.h b/Zend/zend_ast.h
index a88efefd85b..47d22564f98 100644
--- a/Zend/zend_ast.h
+++ b/Zend/zend_ast.h
@@ -153,7 +153,6 @@ enum _zend_ast_kind {
ZEND_AST_MATCH,
ZEND_AST_MATCH_ARM,
ZEND_AST_NAMED_ARG,
- ZEND_AST_PARENT_PROPERTY_HOOK_CALL,
ZEND_AST_PIPE,
/* 3 child nodes */
diff --git a/Zend/zend_compile.c b/Zend/zend_compile.c
index 6734db09a2e..b88d5b9d987 100644
--- a/Zend/zend_compile.c
+++ b/Zend/zend_compile.c
@@ -12135,7 +12135,6 @@ static void zend_compile_expr_inner(znode *result, zend_ast *ast) /* {{{ */
case ZEND_AST_METHOD_CALL:
case ZEND_AST_NULLSAFE_METHOD_CALL:
case ZEND_AST_STATIC_CALL:
- case ZEND_AST_PARENT_PROPERTY_HOOK_CALL:
case ZEND_AST_PIPE:
zend_compile_var(result, ast, BP_VAR_R, false);
return;
@@ -12292,9 +12291,6 @@ static zend_op *zend_compile_var_inner(znode *result, zend_ast *ast, uint32_t ty
case ZEND_AST_CALL:
zend_compile_call(result, ast, type);
return NULL;
- case ZEND_AST_PARENT_PROPERTY_HOOK_CALL:
- zend_compile_parent_property_hook_call(result, ast, type);
- return NULL;
case ZEND_AST_METHOD_CALL:
case ZEND_AST_NULLSAFE_METHOD_CALL:
zend_compile_method_call(result, ast, type);