Skip to content

Commit 54b61c8

Browse files
committed
Throw
1 parent 098862d commit 54b61c8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Zend/zend_ast.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1148,6 +1148,7 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
11481148
ZEND_ASSERT(args->children > 0);
11491149
if (args->children != 1 || args->child[0]->attr != ZEND_PLACEHOLDER_VARIADIC) {
11501150
/* TODO: PFAs */
1151+
zend_error_noreturn(E_COMPILE_ERROR, "Constant expression contains invalid operations");
11511152
return FAILURE;
11521153
}
11531154

@@ -1182,6 +1183,7 @@ static zend_result ZEND_FASTCALL zend_ast_evaluate_inner(
11821183
ZEND_ASSERT(args->children > 0);
11831184
if (args->children != 1 || args->child[0]->attr != ZEND_PLACEHOLDER_VARIADIC) {
11841185
/* TODO: PFAs */
1186+
zend_error_noreturn(E_COMPILE_ERROR, "Constant expression contains invalid operations");
11851187
return FAILURE;
11861188
}
11871189

0 commit comments

Comments
 (0)