Lines Matching refs:kind

385 static void zend_register_seen_symbol(zend_string *name, uint32_t kind) {  in zend_register_seen_symbol()  argument
388 Z_LVAL_P(zv) |= kind; in zend_register_seen_symbol()
391 ZVAL_LONG(&tmp, kind); in zend_register_seen_symbol()
396 static bool zend_have_seen_symbol(zend_string *name, uint32_t kind) { in zend_have_seen_symbol() argument
398 return zv && (Z_LVAL_P(zv) & kind) != 0; in zend_have_seen_symbol()
1629 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_try_compile_const_expr_resolve_class_name()
2329 switch (ast->kind) { in zend_ast_is_short_circuited()
2351 if (zend_ast_kind_is_short_circuited(ast->kind)) { in zend_short_circuiting_mark_inner()
2363 bool is_short_circuited = zend_ast_kind_is_short_circuited(ast->kind) in zend_short_circuiting_commit()
2364 || ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY; in zend_short_circuiting_commit()
2382 ast->kind == ZEND_AST_ISSET ? ZEND_SHORT_CIRCUITING_CHAIN_ISSET : in zend_short_circuiting_commit()
2383 ast->kind == ZEND_AST_EMPTY ? ZEND_SHORT_CIRCUITING_CHAIN_EMPTY : in zend_short_circuiting_commit()
2543 return ast->kind == ZEND_AST_VAR in zend_is_variable()
2544 || ast->kind == ZEND_AST_DIM in zend_is_variable()
2545 || ast->kind == ZEND_AST_PROP in zend_is_variable()
2546 || ast->kind == ZEND_AST_NULLSAFE_PROP in zend_is_variable()
2547 || ast->kind == ZEND_AST_STATIC_PROP; in zend_is_variable()
2553 return ast->kind == ZEND_AST_CALL in zend_is_call()
2554 || ast->kind == ZEND_AST_METHOD_CALL in zend_is_call()
2555 || ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL in zend_is_call()
2556 || ast->kind == ZEND_AST_STATIC_CALL; in zend_is_call()
2568 return ast->kind == ZEND_AST_STMT_LIST || ast->kind == ZEND_AST_LABEL in zend_is_unticked_stmt()
2569 || ast->kind == ZEND_AST_PROP_DECL || ast->kind == ZEND_AST_CLASS_CONST_GROUP in zend_is_unticked_stmt()
2570 || ast->kind == ZEND_AST_USE_TRAIT || ast->kind == ZEND_AST_METHOD; in zend_is_unticked_stmt()
2577 ast->kind == ZEND_AST_DIM in zend_can_write_to_variable()
2578 || ast->kind == ZEND_AST_PROP in zend_can_write_to_variable()
2589 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_is_const_default_class_ref()
2645 if (name_ast->kind != ZEND_AST_ZVAL) { in zend_compile_class_ref()
2699 if (name_ast->kind == ZEND_AST_ZVAL) { in zend_try_compile_cv()
2759 if (ast->kind == ZEND_AST_VAR && ast->child[0]->kind == ZEND_AST_ZVAL) { in is_this_fetch()
2770 if (ast->kind == ZEND_AST_VAR && ast->child[0]->kind == ZEND_AST_ZVAL) { in is_globals_fetch()
2780 return ast->kind == ZEND_AST_DIM && is_globals_fetch(ast->child[0]); in is_global_var_fetch()
2917 bool nullsafe = ast->kind == ZEND_AST_NULLSAFE_PROP; in zend_delayed_compile_prop()
3031 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_verify_list_assign_target()
3057 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_propagate_list_refs()
3073 return child->kind == ZEND_AST_ARRAY_ELEM && child->child[1] != NULL; in list_is_keyed()
3106 if (elem_ast->kind == ZEND_AST_UNPACK) { in zend_compile_list_assign()
3148 if (var_ast->kind == ZEND_AST_ARRAY) { in zend_compile_list_assign()
3171 if (ast->kind == ZEND_AST_CALL) { in zend_ensure_writable_variable()
3175 ast->kind == ZEND_AST_METHOD_CALL in zend_ensure_writable_variable()
3176 || ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL in zend_ensure_writable_variable()
3177 || ast->kind == ZEND_AST_STATIC_CALL in zend_ensure_writable_variable()
3194 if (expr_ast->kind != ZEND_AST_VAR || expr_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
3198 while (zend_is_variable(var_ast) && var_ast->kind != ZEND_AST_VAR) { in zend_is_assign_to_self()
3202 if (var_ast->kind != ZEND_AST_VAR || var_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_is_assign_to_self()
3248 zend_ast_kind kind = is_global_var_fetch(var_ast) ? ZEND_AST_VAR : var_ast->kind; in zend_compile_assign() local
3249 switch (kind) { in zend_compile_assign()
3310 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_assign()
3355 if ((target_ast->kind != ZEND_AST_VAR in zend_compile_assign_ref()
3356 || target_ast->child[0]->kind != ZEND_AST_ZVAL) in zend_compile_assign_ref()
3357 && source_ast->kind != ZEND_AST_ZNODE in zend_compile_assign_ref()
3418 zend_ast_kind kind = is_global_var_fetch(var_ast) ? ZEND_AST_VAR : var_ast->kind; in zend_compile_compound_assign() local
3419 switch (kind) { in zend_compile_compound_assign()
3525 if (arg->kind == ZEND_AST_UNPACK) { in zend_compile_args()
3547 if (arg->kind == ZEND_AST_NAMED_ARG) { in zend_compile_args()
3619 if (arg->kind == ZEND_AST_VAR) { in zend_compile_args()
3730 if (args_ast->kind == ZEND_AST_CALLABLE_CONVERT) { in zend_compile_call_common()
3832 if (arg->kind == ZEND_AST_UNPACK || arg->kind == ZEND_AST_NAMED_ARG) { in zend_args_contain_unpack_or_named()
3920 if (args->children != 1 || args->child[0]->kind != ZEND_AST_ZVAL) { in zend_compile_func_defined()
3951 args->child[0]->kind == ZEND_AST_ZVAL && in zend_compile_func_chr()
3968 args->child[0]->kind == ZEND_AST_ZVAL && in zend_compile_func_ord()
3993 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_try_compile_ct_bound_init_user_func()
4050 if (args->child[1]->kind == ZEND_AST_CALL in zend_compile_func_cufa()
4051 && args->child[1]->child[0]->kind == ZEND_AST_ZVAL in zend_compile_func_cufa()
4053 && args->child[1]->child[1]->kind == ZEND_AST_ARG_LIST) { in zend_compile_func_cufa()
4062 && list->child[1]->kind == ZEND_AST_ZVAL) { in zend_compile_func_cufa()
4144 if (args->child[0]->kind == ZEND_AST_NAMED_ARG) { in zend_compile_assert()
4176 if (args->child[2]->kind == ZEND_AST_ZVAL) { in zend_compile_func_in_array()
4178 } else if (args->child[2]->kind == ZEND_AST_CONST) { in zend_compile_func_in_array()
4200 if (args->child[1]->kind != ZEND_AST_ARRAY in zend_compile_func_in_array()
4356 && args->child[0]->kind == ZEND_AST_CALL in zend_compile_func_array_slice()
4357 && args->child[0]->child[0]->kind == ZEND_AST_ZVAL in zend_compile_func_array_slice()
4359 && args->child[0]->child[1]->kind == ZEND_AST_ARG_LIST in zend_compile_func_array_slice()
4360 && args->child[1]->kind == ZEND_AST_ZVAL) { in zend_compile_func_array_slice()
4475 bool is_callable_convert = args_ast->kind == ZEND_AST_CALLABLE_CONVERT; in zend_compile_call()
4479 if (name_ast->kind != ZEND_AST_ZVAL || Z_TYPE_P(zend_ast_get_zval(name_ast)) != IS_STRING) { in zend_compile_call()
4568 bool nullsafe = ast->kind == ZEND_AST_NULLSAFE_METHOD_CALL; in zend_compile_method_call()
4729 if (class_ast->kind == ZEND_AST_CLASS) { in zend_compile_new()
4862 switch (var_ast->kind) { in zend_compile_unset()
5074 ZEND_ASSERT(ast->kind == ZEND_AST_BREAK || ast->kind == ZEND_AST_CONTINUE); in zend_compile_break_continue()
5078 if (depth_ast->kind != ZEND_AST_ZVAL) { in zend_compile_break_continue()
5080 "is no longer supported", ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
5086 ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
5096 ast->kind == ZEND_AST_BREAK ? "break" : "continue"); in zend_compile_break_continue()
5100 ast->kind == ZEND_AST_BREAK ? "break" : "continue", in zend_compile_break_continue()
5105 if (ast->kind == ZEND_AST_CONTINUE) { in zend_compile_break_continue()
5138 opline = zend_emit_op(NULL, ast->kind == ZEND_AST_BREAK ? ZEND_BRK : ZEND_CONT, NULL, NULL); in zend_compile_break_continue()
5349 bool by_ref = value_ast->kind == ZEND_AST_REF; in zend_compile_foreach()
5357 if (key_ast->kind == ZEND_AST_REF) { in zend_compile_foreach()
5360 if (key_ast->kind == ZEND_AST_ARRAY) { in zend_compile_foreach()
5369 if (value_ast->kind == ZEND_AST_ARRAY && zend_propagate_list_refs(value_ast)) { in zend_compile_foreach()
5393 } else if (value_ast->kind == ZEND_AST_VAR && in zend_compile_foreach()
5400 if (value_ast->kind == ZEND_AST_ARRAY) { in zend_compile_foreach()
5497 if ((*cond_ast)->kind != ZEND_AST_ZVAL) { in determine_switch_jumptable_type()
5704 if ((*cond_ast)->kind != ZEND_AST_ZVAL) { in can_match_use_jumptable()
6086 if (value_ast->kind != ZEND_AST_ZVAL) { in zend_handle_encoding_declaration()
6139 } else if (file_ast->child[i]->kind != ZEND_AST_DECLARE) { in zend_is_first_statement()
6161 if ((*value_ast_ptr)->kind != ZEND_AST_ZVAL) { in zend_compile_declare()
6250 if (ast->kind == ZEND_AST_TYPE) { in zend_compile_single_typename()
6329 if (ast->kind == ZEND_AST_TYPE_UNION) { in zend_compile_typename()
6396 } else if (ast->kind == ZEND_AST_TYPE_INTERSECTION) { in zend_compile_typename()
6526 ZEND_ASSERT(ast->kind == ZEND_AST_ATTRIBUTE_LIST); in zend_compile_attributes()
6531 ZEND_ASSERT(group->kind == ZEND_AST_ATTRIBUTE_GROUP); in zend_compile_attributes()
6534 ZEND_ASSERT(group->child[i]->kind == ZEND_AST_ATTRIBUTE); in zend_compile_attributes()
6539 el->child[1]->kind == ZEND_AST_CALLABLE_CONVERT) { in zend_compile_attributes()
6555 ZEND_ASSERT(args->kind == ZEND_AST_ARG_LIST); in zend_compile_attributes()
6562 if (arg_ast->kind == ZEND_AST_UNPACK) { in zend_compile_attributes()
6567 if (arg_ast->kind == ZEND_AST_NAMED_ARG) { in zend_compile_attributes()
6954 if (ast->kind == ZEND_AST_VAR) { in find_implicit_binds_recursively()
6956 if (name_ast->kind == ZEND_AST_ZVAL && Z_TYPE_P(zend_ast_get_zval(name_ast)) == IS_STRING) { in find_implicit_binds_recursively()
6979 } else if (ast->kind == ZEND_AST_CLOSURE) { in find_implicit_binds_recursively()
6990 } else if (ast->kind == ZEND_AST_ARROW_FUNC) { in find_implicit_binds_recursively()
7243 bool is_method = decl->kind == ZEND_AST_METHOD; in zend_compile_func_decl()
7270 if (decl->kind == ZEND_AST_CLOSURE || decl->kind == ZEND_AST_ARROW_FUNC) { in zend_compile_func_decl()
7279 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_compile_func_decl()
7302 if (decl->kind == ZEND_AST_FUNC_DECL) { in zend_compile_func_decl()
7326 if (decl->kind == ZEND_AST_ARROW_FUNC) { in zend_compile_func_decl()
7638 switch (adaptation_ast->kind) { in zend_compile_use_trait()
7934 if (case_value_ast->kind != ZEND_AST_ZVAL) { in zend_compile_enum_case()
8495 static inline bool zend_try_ct_eval_unary_pm(zval *result, zend_ast_kind kind, zval *op) /* {{{ */ in zend_try_ct_eval_unary_pm() argument
8498 ZVAL_LONG(&right, (kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_try_ct_eval_unary_pm()
8503 static inline void zend_ct_eval_greater(zval *result, zend_ast_kind kind, zval *op1, zval *op2) /* … in zend_ct_eval_greater() argument
8505 binary_op_type fn = kind == ZEND_AST_GREATER in zend_ct_eval_greater()
8534 if (elem_ast->kind != ZEND_AST_UNPACK) { in zend_try_ct_eval_array()
8538 if (elem_ast->attr /* by_ref */ || elem_ast->child[0]->kind != ZEND_AST_ZVAL in zend_try_ct_eval_array()
8539 || (elem_ast->child[1] && elem_ast->child[1]->kind != ZEND_AST_ZVAL) in zend_try_ct_eval_array()
8546 if (elem_ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_try_ct_eval_array()
8570 if (elem_ast->kind == ZEND_AST_UNPACK) { in zend_try_ct_eval_array()
8738 ZEND_ASSERT(ast->kind == ZEND_AST_GREATER || ast->kind == ZEND_AST_GREATER_EQUAL); in zend_compile_greater()
8745 zend_ct_eval_greater(&result->u.constant, ast->kind, in zend_compile_greater()
8753 ast->kind == ZEND_AST_GREATER ? ZEND_IS_SMALLER : ZEND_IS_SMALLER_OR_EQUAL, in zend_compile_greater()
8782 ZEND_ASSERT(ast->kind == ZEND_AST_UNARY_PLUS || ast->kind == ZEND_AST_UNARY_MINUS); in zend_compile_unary_pm()
8787 && zend_try_ct_eval_unary_pm(&result->u.constant, ast->kind, &expr_node.u.constant)) { in zend_compile_unary_pm()
8794 ZVAL_LONG(&right_node.u.constant, (ast->kind == ZEND_AST_UNARY_PLUS) ? 1 : -1); in zend_compile_unary_pm()
8808 ZEND_ASSERT(ast->kind == ZEND_AST_AND || ast->kind == ZEND_AST_OR); in zend_compile_short_circuiting()
8813 if ((ast->kind == ZEND_AST_AND && !zend_is_true(&left_node.u.constant)) in zend_compile_short_circuiting()
8814 || (ast->kind == ZEND_AST_OR && zend_is_true(&left_node.u.constant))) { in zend_compile_short_circuiting()
8835 opline_jmpz = zend_emit_op(NULL, ast->kind == ZEND_AST_AND ? ZEND_JMPZ_EX : ZEND_JMPNZ_EX, in zend_compile_short_circuiting()
8857 ZEND_ASSERT(ast->kind == ZEND_AST_POST_INC || ast->kind == ZEND_AST_POST_DEC); in zend_compile_post_incdec()
8861 if (var_ast->kind == ZEND_AST_PROP || var_ast->kind == ZEND_AST_NULLSAFE_PROP) { in zend_compile_post_incdec()
8863 opline->opcode = ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC_OBJ : ZEND_POST_DEC_OBJ; in zend_compile_post_incdec()
8865 } else if (var_ast->kind == ZEND_AST_STATIC_PROP) { in zend_compile_post_incdec()
8867 …opline->opcode = ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC_STATIC_PROP : ZEND_POST_DEC_STATIC… in zend_compile_post_incdec()
8872 zend_emit_op_tmp(result, ast->kind == ZEND_AST_POST_INC ? ZEND_POST_INC : ZEND_POST_DEC, in zend_compile_post_incdec()
8881 ZEND_ASSERT(ast->kind == ZEND_AST_PRE_INC || ast->kind == ZEND_AST_PRE_DEC); in zend_compile_pre_incdec()
8885 if (var_ast->kind == ZEND_AST_PROP || var_ast->kind == ZEND_AST_NULLSAFE_PROP) { in zend_compile_pre_incdec()
8887 opline->opcode = ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC_OBJ : ZEND_PRE_DEC_OBJ; in zend_compile_pre_incdec()
8890 } else if (var_ast->kind == ZEND_AST_STATIC_PROP) { in zend_compile_pre_incdec()
8892 …opline->opcode = ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC_STATIC_PROP : ZEND_PRE_DEC_STATIC_PR… in zend_compile_pre_incdec()
8898 zend_emit_op_tmp(result, ast->kind == ZEND_AST_PRE_INC ? ZEND_PRE_INC : ZEND_PRE_DEC, in zend_compile_pre_incdec()
8958 if (cond_ast->kind == ZEND_AST_CONDITIONAL in zend_compile_conditional()
9070 if (var_ast->kind == ZEND_AST_DIM) { in zend_compile_assign_coalesce()
9082 zend_ast_kind kind = is_global_var_fetch(var_ast) ? ZEND_AST_VAR : var_ast->kind; in zend_compile_assign_coalesce() local
9083 switch (kind) { in zend_compile_assign_coalesce()
9286 ZEND_ASSERT(ast->kind == ZEND_AST_ISSET || ast->kind == ZEND_AST_EMPTY); in zend_compile_isset_or_empty()
9289 if (ast->kind == ZEND_AST_EMPTY) { in zend_compile_isset_or_empty()
9303 ZVAL_BOOL(&result->u.constant, ast->kind == ZEND_AST_ISSET); in zend_compile_isset_or_empty()
9319 ZEND_FETCH_GLOBAL | (ast->kind == ZEND_AST_EMPTY ? ZEND_ISEMPTY : 0); in zend_compile_isset_or_empty()
9324 switch (var_ast->kind) { in zend_compile_isset_or_empty()
9353 if (!(ast->kind == ZEND_AST_ISSET)) { in zend_compile_isset_or_empty()
9366 if (expr_ast->kind == ZEND_AST_VAR) { in zend_compile_silence()
9423 if (elem_ast->kind == ZEND_AST_UNPACK) { in zend_compile_array()
9488 while (last && last->kind == ZEND_AST_STMT_LIST) { in zend_compile_const()
9495 if (last && last->kind == ZEND_AST_HALT_COMPILER) { in zend_compile_const()
9537 if (class_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_const()
9541 …if (const_ast->kind == ZEND_AST_ZVAL && zend_try_ct_eval_class_const(&result->u.constant, resolved… in zend_compile_class_const()
9570 if (class_ast->kind == ZEND_AST_ZVAL) { in zend_compile_class_name()
9757 static bool zend_is_allowed_in_const_expr(zend_ast_kind kind) /* {{{ */ in zend_is_allowed_in_const_expr() argument
9759 return kind == ZEND_AST_ZVAL || kind == ZEND_AST_BINARY_OP in zend_is_allowed_in_const_expr()
9760 || kind == ZEND_AST_GREATER || kind == ZEND_AST_GREATER_EQUAL in zend_is_allowed_in_const_expr()
9761 || kind == ZEND_AST_AND || kind == ZEND_AST_OR in zend_is_allowed_in_const_expr()
9762 || kind == ZEND_AST_UNARY_OP in zend_is_allowed_in_const_expr()
9763 || kind == ZEND_AST_UNARY_PLUS || kind == ZEND_AST_UNARY_MINUS in zend_is_allowed_in_const_expr()
9764 || kind == ZEND_AST_CONDITIONAL || kind == ZEND_AST_DIM in zend_is_allowed_in_const_expr()
9765 || kind == ZEND_AST_ARRAY || kind == ZEND_AST_ARRAY_ELEM in zend_is_allowed_in_const_expr()
9766 || kind == ZEND_AST_UNPACK in zend_is_allowed_in_const_expr()
9767 || kind == ZEND_AST_CONST || kind == ZEND_AST_CLASS_CONST in zend_is_allowed_in_const_expr()
9768 || kind == ZEND_AST_CLASS_NAME in zend_is_allowed_in_const_expr()
9769 || kind == ZEND_AST_MAGIC_CONST || kind == ZEND_AST_COALESCE in zend_is_allowed_in_const_expr()
9770 || kind == ZEND_AST_CONST_ENUM_INIT in zend_is_allowed_in_const_expr()
9771 || kind == ZEND_AST_NEW || kind == ZEND_AST_ARG_LIST in zend_is_allowed_in_const_expr()
9772 || kind == ZEND_AST_NAMED_ARG; in zend_is_allowed_in_const_expr()
9783 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_const()
9815 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_class_name()
9879 if (class_ast->kind == ZEND_AST_CLASS) { in zend_compile_const_expr_new()
9883 if (class_ast->kind != ZEND_AST_ZVAL) { in zend_compile_const_expr_new()
9907 if (arg->kind == ZEND_AST_UNPACK) { in zend_compile_const_expr_args()
9911 if (arg->kind == ZEND_AST_NAMED_ARG) { in zend_compile_const_expr_args()
9932 if (ast == NULL || ast->kind == ZEND_AST_ZVAL) { in zend_compile_const_expr()
9936 if (!zend_is_allowed_in_const_expr(ast->kind)) { in zend_compile_const_expr()
9940 switch (ast->kind) { in zend_compile_const_expr()
9976 if ((*ast_ptr)->kind != ZEND_AST_ZVAL) { in zend_const_expr_to_zval()
9994 if (ast->kind == ZEND_AST_STMT_LIST) { in zend_compile_top_stmt()
10003 if (ast->kind == ZEND_AST_FUNC_DECL) { in zend_compile_top_stmt()
10007 } else if (ast->kind == ZEND_AST_CLASS) { in zend_compile_top_stmt()
10014 if (ast->kind != ZEND_AST_NAMESPACE && ast->kind != ZEND_AST_HALT_COMPILER) { in zend_compile_top_stmt()
10032 switch (ast->kind) { in zend_compile_stmt()
10147 switch (ast->kind) { in zend_compile_expr_inner()
10292 switch (ast->kind) { in zend_compile_var_inner()
10336 switch (ast->kind) { in zend_delayed_compile_var()
10367 switch (ast->kind) { in zend_eval_const_expr()
10371 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
10385 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
10389 zend_ct_eval_greater(&result, ast->kind, in zend_eval_const_expr()
10398 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
10403 if (child0_is_true == (ast->kind == ZEND_AST_OR)) { in zend_eval_const_expr()
10404 ZVAL_BOOL(&result, ast->kind == ZEND_AST_OR); in zend_eval_const_expr()
10408 if (ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
10413 if (ast->kind == ZEND_AST_OR) { in zend_eval_const_expr()
10422 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
10433 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
10437 if (!zend_try_ct_eval_unary_pm(&result, ast->kind, zend_ast_get_zval(ast->child[0]))) { in zend_eval_const_expr()
10443 if (ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
10448 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
10469 if (ast->child[0]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
10504 if ((ast->attr & ZEND_DIM_IS) && ast->child[0]->kind == ZEND_AST_DIM) { in zend_eval_const_expr()
10510 if (ast->child[0]->kind != ZEND_AST_ZVAL || ast->child[1]->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()
10593 if (class_ast->kind != ZEND_AST_ZVAL || name_ast->kind != ZEND_AST_ZVAL) { in zend_eval_const_expr()