/PHP-7.3/Zend/ |
H A D | zend_constants.c | 252 char *lcname = do_alloca(name_len + 1, use_heap); in zend_get_constant_str_impl() local 253 zend_str_tolower_copy(lcname, name, name_len); in zend_get_constant_str_impl() 261 free_alloca(lcname, use_heap); in zend_get_constant_str_impl() 281 char *lcname = do_alloca(ZSTR_LEN(name) + 1, use_heap); in zend_get_constant_impl() local 292 free_alloca(lcname, use_heap); in zend_get_constant_impl() 420 char *lcname; in zend_get_constant_ex() local 425 lcname = do_alloca(lcname_len + 1, use_heap); in zend_get_constant_ex() 426 zend_str_tolower_copy(lcname, name, prefix_len); in zend_get_constant_ex() 429 lcname[prefix_len] = '\\'; in zend_get_constant_ex() 434 zend_str_tolower(lcname + prefix_len + 1, const_name_len); in zend_get_constant_ex() [all …]
|
H A D | zend_compile.c | 840 zend_string *lcname; in zend_hash_find_ptr_lc() local 1043 rtd_key = lcname + 1; in do_bind_function() 1046 rtd_key = lcname + 1; in do_bind_function() 1089 rtd_key = lcname + 1; in do_bind_class() 1092 rtd_key = lcname + 1; in do_bind_class() 1125 rtd_key = lcname + 1; in do_bind_inherited_class() 5790 zend_string *lcname; in zend_begin_method_decl() local 5821 lcname = zend_new_interned_string(lcname); in zend_begin_method_decl() 5829 if (ZSTR_VAL(lcname)[0] != '_' || ZSTR_VAL(lcname)[1] != '_') { in zend_begin_method_decl() local 5882 } else if (ZSTR_VAL(lcname)[0] != '_' || ZSTR_VAL(lcname)[1] != '_') { in zend_begin_method_decl() local [all …]
|
H A D | zend_API.c | 1834 zend_string *lcname; in zend_startup_module_ex() local 1860 zend_string_efree(lcname); in zend_startup_module_ex() 2020 zend_string *lcname; in zend_register_module_ex() local 2047 zend_string_efree(lcname); in zend_register_module_ex() 2057 lcname = zend_new_interned_string(lcname); in zend_register_module_ex() 2060 zend_string_release(lcname); in zend_register_module_ex() 2075 zend_string_release(lcname); in zend_register_module_ex() 2090 char lcname[16]; in zend_check_magic_method_implementation() local 2787 zend_string *lcname; in zend_register_class_alias_ex() local 2804 lcname = zend_new_interned_string(lcname); in zend_register_class_alias_ex() [all …]
|
H A D | zend_builtin_functions.c | 1243 zend_string *lcname; in same_name() local 1252 lcname = zend_string_tolower(name); in same_name() 1254 zend_string_release_ex(lcname, 0); in same_name() 1326 zend_string *lcname; in ZEND_FUNCTION() local 1346 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() 1366 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() 1534 zend_string *lcname; in ZEND_FUNCTION() local 1549 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() 2682 zend_string *lcname; in ZEND_FUNCTION() local 2694 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() [all …]
|
H A D | zend_inheritance.c | 1289 zend_string *lcname; in zend_traits_copy_functions() local 1311 lcname = zend_string_tolower(alias->alias); in zend_traits_copy_functions() 1313 zend_string_release_ex(lcname, 0); in zend_traits_copy_functions() 1396 zend_string *lcname; in zend_traits_init_trait_structures() local 1419 lcname = zend_string_tolower(cur_method_ref->method_name); in zend_traits_init_trait_structures() 1420 method_exists = zend_hash_exists(&trait->function_table, lcname); in zend_traits_init_trait_structures() 1448 if (zend_hash_add_empty_element(exclude_tables[trait_num], lcname) == NULL) { in zend_traits_init_trait_structures() 1463 zend_string_release_ex(lcname, 0); in zend_traits_init_trait_structures() 1488 lcname = zend_string_tolower(cur_method_ref->method_name); in zend_traits_init_trait_structures() 1489 method_exists = zend_hash_exists(&trait->function_table, lcname); in zend_traits_init_trait_structures() [all …]
|
H A D | zend_execute.c | 2927 zend_string *lcname; in zend_init_dynamic_call_string() local 2938 lcname = zend_string_init(ZSTR_VAL(function), cname_length, 0); in zend_init_dynamic_call_string() 2942 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() 2957 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() 2962 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() 2976 lcname = zend_string_alloc(ZSTR_LEN(function) - 1, 0); in zend_init_dynamic_call_string() 2977 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(function) + 1, ZSTR_LEN(function) - 1); in zend_init_dynamic_call_string() 2979 lcname = zend_string_tolower(function); in zend_init_dynamic_call_string() 2981 if (UNEXPECTED((func = zend_hash_find(EG(function_table), lcname)) == NULL)) { in zend_init_dynamic_call_string() 2983 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() [all …]
|
/PHP-7.3/sapi/phpdbg/ |
H A D | phpdbg_print.c | 189 zend_string *lcname = zend_string_alloc(strlen(param->method.name), 0); in PHPDBG_PRINT() local 190 zend_str_tolower_copy(ZSTR_VAL(lcname), param->method.name, ZSTR_LEN(lcname)); in PHPDBG_PRINT() 192 if ((fbc = zend_hash_find_ptr(&ce->function_table, lcname))) { in PHPDBG_PRINT() 203 zend_string_release(lcname); in PHPDBG_PRINT() 217 zend_string *lcname; in PHPDBG_PRINT() local 238 lcname = zend_string_alloc(func_name_len, 0); in PHPDBG_PRINT() 239 zend_str_tolower_copy(ZSTR_VAL(lcname), func_name, ZSTR_LEN(lcname)); in PHPDBG_PRINT() 242 if ((fbc = zend_hash_find_ptr(func_table, lcname))) { in PHPDBG_PRINT() 257 efree(lcname); in PHPDBG_PRINT()
|
H A D | phpdbg_list.c | 95 char *lcname = zend_str_tolower_dup(param->method.name, strlen(param->method.name)); in PHPDBG_LIST() local 97 if ((function = zend_hash_str_find_ptr(&ce->function_table, lcname, strlen(lcname)))) { in PHPDBG_LIST() 103 efree(lcname); in PHPDBG_LIST()
|
H A D | phpdbg_utils.c | 181 zend_string *lcname = zend_string_init(cname, strlen(cname), 0); in phpdbg_get_function() local 182 tmp = zend_string_tolower(lcname); in phpdbg_get_function() 183 zend_string_release(lcname); in phpdbg_get_function() 184 lcname = tmp; in phpdbg_get_function() 185 ce = zend_lookup_class(lcname); in phpdbg_get_function() 187 zend_string_release(lcname); in phpdbg_get_function()
|
H A D | phpdbg_prompt.c | 1496 char *lcname = zend_str_tolower_dup(param->str, param->len); in PHPDBG_COMMAND() local 1497 size_t lcname_len = strlen(lcname); in PHPDBG_COMMAND() 1499 if (!zend_hash_str_exists(&PHPDBG_G(registered), lcname, lcname_len)) { in PHPDBG_COMMAND() 1500 if ((function = zend_hash_str_find_ptr(EG(function_table), lcname, lcname_len))) { in PHPDBG_COMMAND() 1501 zend_hash_str_update_ptr(&PHPDBG_G(registered), lcname, lcname_len, function); in PHPDBG_COMMAND() 1504 phpdbg_notice("register", "function=\"%s\"", "Registered %s", lcname); in PHPDBG_COMMAND() 1509 …"register", "type=\"inuse\" function=\"%s\"", "The requested name (%s) is already in use", lcname); in PHPDBG_COMMAND() 1512 efree(lcname); in PHPDBG_COMMAND()
|
H A D | phpdbg_bp.c | 409 char *lcname; in phpdbg_set_breakpoint_symbol() local 416 lcname = zend_str_tolower_dup(name, name_len); in phpdbg_set_breakpoint_symbol() 426 …zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], lcname, name_len, &new_break, sizeof(php… in phpdbg_set_breakpoint_symbol() 435 efree(lcname); in phpdbg_set_breakpoint_symbol() 997 zend_string *lcname = zend_string_tolower(ops->function_name); in phpdbg_find_breakpoint_method() local 999 brake = zend_hash_find_ptr(class_table, lcname); in phpdbg_find_breakpoint_method() 1001 zend_string_release(lcname); in phpdbg_find_breakpoint_method()
|
/PHP-7.3/ext/standard/ |
H A D | browscap.c | 240 zend_string *lcname; in browscap_intern_str_ci() local 244 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(str), use_heap); in browscap_intern_str_ci() 245 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(str), ZSTR_LEN(str)); in browscap_intern_str_ci() 246 interned = zend_hash_find_ptr(&ctx->str_interned, lcname); in browscap_intern_str_ci() 251 interned = zend_string_dup(lcname, persistent); in browscap_intern_str_ci() 255 ZSTR_ALLOCA_FREE(lcname, use_heap); in browscap_intern_str_ci()
|
H A D | var_unserializer.c | 293 zend_string *lcname; in unserialize_allowed_class() local 304 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(class_name), use_heap); in unserialize_allowed_class() 305 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(class_name), ZSTR_LEN(class_name)); in unserialize_allowed_class() 306 res = zend_hash_exists(classes, lcname); in unserialize_allowed_class() 307 ZSTR_ALLOCA_FREE(lcname, use_heap); in unserialize_allowed_class()
|
H A D | var.c | 1126 zend_string *lcname; in PHP_FUNCTION() local 1130 lcname = zend_string_tolower(Z_STR_P(entry)); in PHP_FUNCTION() 1131 zend_hash_add_empty_element(class_hash, lcname); in PHP_FUNCTION() 1132 zend_string_release_ex(lcname, 0); in PHP_FUNCTION()
|
H A D | var_unserializer.re | 291 zend_string *lcname; 302 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(class_name), use_heap); 303 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(class_name), ZSTR_LEN(class_name)); 304 res = zend_hash_exists(classes, lcname); 305 ZSTR_ALLOCA_FREE(lcname, use_heap);
|
/PHP-7.3/ext/reflection/ |
H A D | php_reflection.c | 1104 zend_string *lcname; in reflection_extension_factory() local 2286 char *lcname; in ZEND_METHOD() local 2291 efree(lcname); in ZEND_METHOD() 2296 efree(lcname); in ZEND_METHOD() 2305 char *lcname; in ZEND_METHOD() local 2336 efree(lcname); in ZEND_METHOD() 2341 efree(lcname); in ZEND_METHOD() 2950 char *lcname; in ZEND_METHOD() local 3021 efree(lcname); in ZEND_METHOD() 3026 efree(lcname); in ZEND_METHOD() [all …]
|
/PHP-7.3/ext/opcache/Optimizer/ |
H A D | escape_analysis.c | 151 static inline zend_class_entry *get_class_entry(const zend_script *script, zend_string *lcname) /* … in get_class_entry() argument 153 zend_class_entry *ce = script ? zend_hash_find_ptr(&script->class_table, lcname) : NULL; in get_class_entry() 158 ce = zend_hash_find_ptr(CG(class_table), lcname); in get_class_entry()
|
H A D | zend_ssa.c | 509 …zend_string *lcname = Z_STR_P(CRT_CONSTANT_EX(op_array, (opline-1), (opline-1)->op2, (build_flags … in place_essa_pis() local 510 zend_class_entry *ce = script ? zend_hash_find_ptr(&script->class_table, lcname) : NULL; in place_essa_pis() 512 ce = zend_hash_find_ptr(CG(class_table), lcname); in place_essa_pis()
|
H A D | zend_inference.c | 2246 static inline zend_class_entry *get_class_entry(const zend_script *script, zend_string *lcname) { in get_class_entry() argument 2247 zend_class_entry *ce = script ? zend_hash_find_ptr(&script->class_table, lcname) : NULL; in get_class_entry() 2252 ce = zend_hash_find_ptr(CG(class_table), lcname); in get_class_entry() 2267 zend_string *lcname = zend_string_tolower(ZEND_TYPE_NAME(arg_info->type)); in zend_fetch_arg_info() local 2269 *pce = get_class_entry(script, lcname); in zend_fetch_arg_info() 2270 zend_string_release_ex(lcname, 0); in zend_fetch_arg_info()
|
/PHP-7.3/sapi/cli/ |
H A D | php_cli.c | 1136 char *lcname = zend_str_tolower_dup(reflection_what, len); in do_cli() local 1139 if ((module = zend_hash_str_find_ptr(&module_registry, lcname, len)) == NULL) { in do_cli() 1150 efree(lcname); in do_cli()
|