File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed
Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments