Lines Matching refs:lcname
840 zend_string *lcname; in zend_hash_find_ptr_lc() local
843 ZSTR_ALLOCA_ALLOC(lcname, len, use_heap); in zend_hash_find_ptr_lc()
844 zend_str_tolower_copy(ZSTR_VAL(lcname), str, len); in zend_hash_find_ptr_lc()
845 result = zend_hash_find_ptr(ht, lcname); in zend_hash_find_ptr_lc()
846 ZSTR_ALLOCA_FREE(lcname, use_heap); in zend_hash_find_ptr_lc()
1039 zval *lcname, *rtd_key, *zv; in do_bind_function() local
1042 lcname = CT_CONSTANT_EX(op_array, opline->op1.constant); in do_bind_function()
1043 rtd_key = lcname + 1; in do_bind_function()
1045 lcname = RT_CONSTANT(opline, opline->op1); in do_bind_function()
1046 rtd_key = lcname + 1; in do_bind_function()
1053 if (zend_hash_add_ptr(function_table, Z_STR_P(lcname), new_function) == NULL) { in do_bind_function()
1057 zv = zend_hash_find_ex(function_table, Z_STR_P(lcname), 1); in do_bind_function()
1085 zval *lcname, *rtd_key, *zv; in do_bind_class() local
1088 lcname = CT_CONSTANT_EX(op_array, opline->op1.constant); in do_bind_class()
1089 rtd_key = lcname + 1; in do_bind_class()
1091 lcname = RT_CONSTANT(opline, opline->op1); in do_bind_class()
1092 rtd_key = lcname + 1; in do_bind_class()
1098 if (zend_hash_add_ptr(class_table, Z_STR_P(lcname), ce) == NULL) { in do_bind_class()
1121 zval *lcname, *rtd_key, *zv; in do_bind_inherited_class() local
1124 lcname = CT_CONSTANT_EX(op_array, opline->op1.constant); in do_bind_inherited_class()
1125 rtd_key = lcname + 1; in do_bind_inherited_class()
1127 lcname = RT_CONSTANT(opline, opline->op1); in do_bind_inherited_class()
1128 rtd_key = lcname + 1; in do_bind_inherited_class()
1140 …"Cannot declare %s, because the name is already in use", zend_get_object_type(Z_OBJCE_P(lcname))); in do_bind_inherited_class()
1147 if (zend_hash_exists(class_table, Z_STR_P(lcname))) { in do_bind_inherited_class()
1156 if (zend_hash_add_ptr(class_table, Z_STR_P(lcname), ce) == NULL) { in do_bind_inherited_class()
3496 zend_string *lcname = zend_string_tolower(name); in zend_compile_func_defined() local
3497 ZVAL_NEW_STR(&c, lcname); in zend_compile_func_defined()
3540 zend_string *name, *lcname; in zend_try_compile_ct_bound_init_user_func() local
3549 lcname = zend_string_tolower(name); in zend_try_compile_ct_bound_init_user_func()
3551 fbc = zend_hash_find_ptr(CG(function_table), lcname); in zend_try_compile_ct_bound_init_user_func()
3556 zend_string_release_ex(lcname, 0); in zend_try_compile_ct_bound_init_user_func()
3564 LITERAL_STR(opline->op2, lcname); in zend_try_compile_ct_bound_init_user_func()
3590 int zend_compile_func_cufa(znode *result, zend_ast_list *args, zend_string *lcname) /* {{{ */ in zend_compile_func_cufa() argument
3598 zend_compile_init_user_func(args->child[0], 0, lcname); in zend_compile_func_cufa()
3639 int zend_compile_func_cuf(znode *result, zend_ast_list *args, zend_string *lcname) /* {{{ */ in zend_compile_func_cuf() argument
3647 zend_compile_init_user_func(args->child[0], args->children - 1, lcname); in zend_compile_func_cuf()
3908 int zend_try_compile_special_func(znode *result, zend_string *lcname, zend_ast_list *args, zend_fun… in zend_try_compile_special_func() argument
3918 if (zend_string_equals_literal(lcname, "strlen")) { in zend_try_compile_special_func()
3920 } else if (zend_string_equals_literal(lcname, "is_null")) { in zend_try_compile_special_func()
3922 } else if (zend_string_equals_literal(lcname, "is_bool")) { in zend_try_compile_special_func()
3924 } else if (zend_string_equals_literal(lcname, "is_long") in zend_try_compile_special_func()
3925 || zend_string_equals_literal(lcname, "is_int") in zend_try_compile_special_func()
3926 || zend_string_equals_literal(lcname, "is_integer") in zend_try_compile_special_func()
3929 } else if (zend_string_equals_literal(lcname, "is_float") in zend_try_compile_special_func()
3930 || zend_string_equals_literal(lcname, "is_double") in zend_try_compile_special_func()
3931 || zend_string_equals_literal(lcname, "is_real") in zend_try_compile_special_func()
3934 } else if (zend_string_equals_literal(lcname, "is_string")) { in zend_try_compile_special_func()
3936 } else if (zend_string_equals_literal(lcname, "is_array")) { in zend_try_compile_special_func()
3938 } else if (zend_string_equals_literal(lcname, "is_object")) { in zend_try_compile_special_func()
3940 } else if (zend_string_equals_literal(lcname, "is_resource")) { in zend_try_compile_special_func()
3942 } else if (zend_string_equals_literal(lcname, "boolval")) { in zend_try_compile_special_func()
3944 } else if (zend_string_equals_literal(lcname, "intval")) { in zend_try_compile_special_func()
3946 } else if (zend_string_equals_literal(lcname, "floatval") in zend_try_compile_special_func()
3947 || zend_string_equals_literal(lcname, "doubleval") in zend_try_compile_special_func()
3950 } else if (zend_string_equals_literal(lcname, "strval")) { in zend_try_compile_special_func()
3952 } else if (zend_string_equals_literal(lcname, "defined")) { in zend_try_compile_special_func()
3954 } else if (zend_string_equals_literal(lcname, "chr") && type == BP_VAR_R) { in zend_try_compile_special_func()
3956 } else if (zend_string_equals_literal(lcname, "ord") && type == BP_VAR_R) { in zend_try_compile_special_func()
3958 } else if (zend_string_equals_literal(lcname, "call_user_func_array")) { in zend_try_compile_special_func()
3959 return zend_compile_func_cufa(result, args, lcname); in zend_try_compile_special_func()
3960 } else if (zend_string_equals_literal(lcname, "call_user_func")) { in zend_try_compile_special_func()
3961 return zend_compile_func_cuf(result, args, lcname); in zend_try_compile_special_func()
3962 } else if (zend_string_equals_literal(lcname, "in_array")) { in zend_try_compile_special_func()
3964 } else if (zend_string_equals_literal(lcname, "count")) { in zend_try_compile_special_func()
3966 } else if (zend_string_equals_literal(lcname, "get_class")) { in zend_try_compile_special_func()
3968 } else if (zend_string_equals_literal(lcname, "get_called_class")) { in zend_try_compile_special_func()
3970 } else if (zend_string_equals_literal(lcname, "gettype")) { in zend_try_compile_special_func()
3972 } else if (zend_string_equals_literal(lcname, "func_num_args")) { in zend_try_compile_special_func()
3974 } else if (zend_string_equals_literal(lcname, "func_get_args")) { in zend_try_compile_special_func()
3976 } else if (zend_string_equals_literal(lcname, "array_slice")) { in zend_try_compile_special_func()
4011 zend_string *lcname; in zend_compile_call() local
4015 lcname = zend_string_tolower(Z_STR_P(name)); in zend_compile_call()
4016 fbc = zend_hash_find_ptr(CG(function_table), lcname); in zend_compile_call()
4019 if (fbc && zend_string_equals_literal(lcname, "assert")) { in zend_compile_call()
4020 zend_compile_assert(result, zend_ast_get_list(args_ast), lcname, fbc); in zend_compile_call()
4021 zend_string_release(lcname); in zend_compile_call()
4030 zend_string_release_ex(lcname, 0); in zend_compile_call()
4035 if (zend_try_compile_special_func(result, lcname, in zend_compile_call()
4038 zend_string_release_ex(lcname, 0); in zend_compile_call()
4044 ZVAL_NEW_STR(&name_node.u.constant, lcname); in zend_compile_call()
4089 zend_string *lcname = Z_STR_P(CT_CONSTANT(opline->op2) + 1); in zend_compile_method_call() local
4090 fbc = zend_hash_find_ptr(&CG(active_class_entry)->function_table, lcname); in zend_compile_method_call()
4155 zend_string *lcname = Z_STR_P(CT_CONSTANT(opline->op1) + 1); in zend_compile_static_call() local
4156 ce = zend_hash_find_ptr(CG(class_table), lcname); in zend_compile_static_call()
4158 && zend_string_equals_ci(CG(active_class_entry)->name, lcname)) { in zend_compile_static_call()
4167 zend_string *lcname = Z_STR_P(CT_CONSTANT(opline->op2) + 1); in zend_compile_static_call() local
4168 fbc = zend_hash_find_ptr(&ce->function_table, lcname); in zend_compile_static_call()
5790 zend_string *lcname; in zend_begin_method_decl() local
5820 lcname = zend_string_tolower(name); in zend_begin_method_decl()
5821 lcname = zend_new_interned_string(lcname); in zend_begin_method_decl()
5823 if (zend_hash_add_ptr(&ce->function_table, lcname, op_array) == NULL) { in zend_begin_method_decl()
5829 if (ZSTR_VAL(lcname)[0] != '_' || ZSTR_VAL(lcname)[1] != '_') { in zend_begin_method_decl() local
5831 } else if (zend_string_equals_literal(lcname, ZEND_CALL_FUNC_NAME)) { in zend_begin_method_decl()
5836 } else if (zend_string_equals_literal(lcname, ZEND_CALLSTATIC_FUNC_NAME)) { in zend_begin_method_decl()
5841 } else if (zend_string_equals_literal(lcname, ZEND_GET_FUNC_NAME)) { in zend_begin_method_decl()
5846 } else if (zend_string_equals_literal(lcname, ZEND_SET_FUNC_NAME)) { in zend_begin_method_decl()
5851 } else if (zend_string_equals_literal(lcname, ZEND_UNSET_FUNC_NAME)) { in zend_begin_method_decl()
5856 } else if (zend_string_equals_literal(lcname, ZEND_ISSET_FUNC_NAME)) { in zend_begin_method_decl()
5861 } else if (zend_string_equals_literal(lcname, ZEND_TOSTRING_FUNC_NAME)) { in zend_begin_method_decl()
5866 } else if (zend_string_equals_literal(lcname, ZEND_INVOKE_FUNC_NAME)) { in zend_begin_method_decl()
5871 } else if (zend_string_equals_literal(lcname, ZEND_DEBUGINFO_FUNC_NAME)) { in zend_begin_method_decl()
5878 if (!in_trait && zend_string_equals_ci(lcname, ce->name)) { in zend_begin_method_decl()
5882 } else if (ZSTR_VAL(lcname)[0] != '_' || ZSTR_VAL(lcname)[1] != '_') { in zend_begin_method_decl() local
5886 } else if (zend_string_equals_literal(lcname, ZEND_CONSTRUCTOR_FUNC_NAME)) { in zend_begin_method_decl()
5888 } else if (zend_string_equals_literal(lcname, ZEND_DESTRUCTOR_FUNC_NAME)) { in zend_begin_method_decl()
5890 } else if (zend_string_equals_literal(lcname, ZEND_CLONE_FUNC_NAME)) { in zend_begin_method_decl()
5892 } else if (zend_string_equals_literal(lcname, ZEND_CALL_FUNC_NAME)) { in zend_begin_method_decl()
5898 } else if (zend_string_equals_literal(lcname, ZEND_CALLSTATIC_FUNC_NAME)) { in zend_begin_method_decl()
5904 } else if (zend_string_equals_literal(lcname, ZEND_GET_FUNC_NAME)) { in zend_begin_method_decl()
5911 } else if (zend_string_equals_literal(lcname, ZEND_SET_FUNC_NAME)) { in zend_begin_method_decl()
5918 } else if (zend_string_equals_literal(lcname, ZEND_UNSET_FUNC_NAME)) { in zend_begin_method_decl()
5925 } else if (zend_string_equals_literal(lcname, ZEND_ISSET_FUNC_NAME)) { in zend_begin_method_decl()
5932 } else if (zend_string_equals_literal(lcname, ZEND_TOSTRING_FUNC_NAME)) { in zend_begin_method_decl()
5938 } else if (zend_string_equals_literal(lcname, ZEND_INVOKE_FUNC_NAME)) { in zend_begin_method_decl()
5943 } else if (zend_string_equals_literal(lcname, ZEND_DEBUGINFO_FUNC_NAME)) { in zend_begin_method_decl()
5954 zend_string_release_ex(lcname, 0); in zend_begin_method_decl()
5961 zend_string *unqualified_name, *name, *lcname, *key; in zend_begin_func_decl() local
5966 lcname = zend_string_tolower(name); in zend_begin_func_decl()
5971 if (import_name && !zend_string_equals_ci(lcname, import_name)) { in zend_begin_func_decl()
5977 if (zend_string_equals_literal(lcname, ZEND_AUTOLOAD_FUNC_NAME)) { in zend_begin_func_decl()
5992 key = zend_build_runtime_definition_key(lcname, decl->lex_pos); in zend_begin_func_decl()
5994 zend_register_seen_symbol(lcname, ZEND_SYMBOL_FUNCTION); in zend_begin_func_decl()
6004 LITERAL_STR(opline->op1, zend_string_copy(lcname)); in zend_begin_func_decl()
6009 zend_string_release_ex(lcname, 0); in zend_begin_func_decl()
6349 zend_string *name, *lcname; in zend_compile_class_decl() local
6368 lcname = zend_string_tolower(name); in zend_compile_class_decl()
6373 if (import_name && !zend_string_equals_ci(lcname, import_name)) { in zend_compile_class_decl()
6379 zend_register_seen_symbol(lcname, ZEND_SYMBOL_CLASS); in zend_compile_class_decl()
6382 lcname = zend_string_tolower(name); in zend_compile_class_decl()
6384 lcname = zend_new_interned_string(lcname); in zend_compile_class_decl()
6433 LITERAL_STR(opline->op1, lcname); in zend_compile_class_decl()
6444 if (!zend_hash_exists(CG(class_table), lcname)) { in zend_compile_class_decl()
6445 zend_hash_add_ptr(CG(class_table), lcname, ce); in zend_compile_class_decl()
6454 ce = zend_hash_find_ptr(CG(class_table), lcname); in zend_compile_class_decl()
6486 key = zend_build_runtime_definition_key(lcname, decl->lex_pos); in zend_compile_class_decl()