/PHP-8.1/Zend/ |
H A D | zend_attributes.c | 82 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute() 97 if (attr->offset == offset && ZSTR_LEN(attr->lcname) == len) { in get_attribute_str() 98 if (0 == memcmp(ZSTR_VAL(attr->lcname), str, len)) { in get_attribute_str() 110 return get_attribute(attributes, lcname, 0); in zend_get_attribute() 120 return get_attribute(attributes, lcname, offset + 1); in zend_get_parameter_attribute() 178 if (zend_string_equals(other->lcname, attr->lcname)) { in zend_is_attribute_repeated() 193 zend_string_release(attr->lcname); in attr_free() 225 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute() 260 zend_string *lcname = zend_string_tolower_ex(ce->name, 1); in zend_internal_attribute_register() local 265 zend_string_release(lcname); in zend_internal_attribute_register() [all …]
|
H A D | zend_attributes.h | 51 zend_string *lcname; member 66 ZEND_API zend_attribute *zend_get_attribute(HashTable *attributes, zend_string *lcname); 69 ZEND_API zend_attribute *zend_get_parameter_attribute(HashTable *attributes, zend_string *lcname, u… 78 ZEND_API zend_internal_attribute *zend_internal_attribute_get(zend_string *lcname);
|
H A D | zend_builtin_functions.c | 861 zend_string *lcname; in ZEND_FUNCTION() local 883 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() 961 zend_string *lcname; in class_exists_impl() local 988 zend_string_release_ex(lcname, 0); in class_exists_impl() 1032 zend_string *lcname; in ZEND_FUNCTION() local 1043 lcname = zend_string_tolower(name); in ZEND_FUNCTION() 1047 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() 1857 zend_string *lcname; in ZEND_FUNCTION() local 1869 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() 1877 zend_string *lcname; in ZEND_FUNCTION() local [all …]
|
H A D | zend_API.c | 2155 zend_string *lcname; in zend_startup_module_ex() local 2181 zend_string_efree(lcname); in zend_startup_module_ex() 2344 zend_string *lcname; in zend_register_module_ex() local 2371 zend_string_efree(lcname); in zend_register_module_ex() 2381 lcname = zend_new_interned_string(lcname); in zend_register_module_ex() 2384 zend_string_release(lcname); in zend_register_module_ex() 2399 zend_string_release(lcname); in zend_register_module_ex() 2612 if (ZSTR_VAL(lcname)[0] != '_' || ZSTR_VAL(lcname)[1] != '_') { in zend_add_magic_method() local 3188 zend_string *lcname; in zend_register_class_alias_ex() local 3206 lcname = zend_new_interned_string(lcname); in zend_register_class_alias_ex() [all …]
|
H A D | zend_compile.c | 1152 rtd_key = lcname + 1; in do_bind_class() 3989 zend_string *name, *lcname; in zend_try_compile_ct_bound_init_user_func() local 4507 zend_string *lcname; in zend_compile_call() local 7113 zend_string *lcname; in zend_begin_method_decl() local 7160 lcname = zend_new_interned_string(lcname); in zend_begin_method_decl() 7173 return lcname; in zend_begin_method_decl() 7217 return lcname; in zend_begin_func_decl() 7232 return lcname; in zend_begin_func_decl() 7244 zend_string *lcname; in zend_compile_func_decl() local 7753 lcname = NULL; in zend_compile_class_decl() [all …]
|
H A D | zend_constants.c | 509 char *lcname; in zend_get_constant_ex() local 515 lcname = do_alloca(lcname_len + 1, use_heap); in zend_get_constant_ex() 516 zend_str_tolower_copy(lcname, name, prefix_len); in zend_get_constant_ex() 518 lcname[prefix_len] = '\\'; in zend_get_constant_ex() 519 memcpy(lcname + prefix_len + 1, constant_name, const_name_len + 1); in zend_get_constant_ex() 521 c = zend_hash_str_find_ptr(EG(zend_constants), lcname, lcname_len); in zend_get_constant_ex() 522 free_alloca(lcname, use_heap); in zend_get_constant_ex()
|
H A D | zend_inheritance.h | 37 …rly_bind(zend_class_entry *ce, zend_class_entry *parent_ce, zend_string *lcname, zval *delayed_ear…
|
H A D | zend_inheritance.c | 1870 zend_string *lcname; in zend_traits_copy_functions() local 1892 lcname = zend_string_tolower(alias->alias); in zend_traits_copy_functions() 1893 zend_add_trait_method(ce, alias->alias, lcname, &fn_copy); in zend_traits_copy_functions() 1894 zend_string_release_ex(lcname, 0); in zend_traits_copy_functions() 1956 zend_string *lcname; in zend_traits_init_trait_structures() local 1979 lcname = zend_string_tolower(cur_method_ref->method_name); in zend_traits_init_trait_structures() 1980 if (!zend_hash_exists(&trait->function_table, lcname)) { in zend_traits_init_trait_structures() 2025 zend_string_release_ex(lcname, 0); in zend_traits_init_trait_structures() 2041 lcname = zend_string_tolower(cur_method_ref->method_name); in zend_traits_init_trait_structures() 2054 if (!zend_hash_exists(&trait->function_table, lcname)) { in zend_traits_init_trait_structures() [all …]
|
H A D | zend_compile.h | 792 zval *class_table_slot, zval *lcname, zend_string *lc_parent_name); 793 ZEND_API zend_result do_bind_function(zend_function *func, zval *lcname); 794 ZEND_API zend_result do_bind_class(zval *lcname, zend_string *lc_parent_name);
|
H A D | zend_execute.h | 50 ZEND_API zend_class_entry *zend_lookup_class_ex(zend_string *name, zend_string *lcname, uint32_t fl… 356 ZEND_API zend_class_entry *zend_fetch_class_by_name(zend_string *class_name, zend_string *lcname, i…
|
H A D | zend_execute.c | 4561 zend_string *lcname; in zend_init_dynamic_call_string() local 4572 lcname = zend_string_init(ZSTR_VAL(function), cname_length, 0); in zend_init_dynamic_call_string() 4576 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() 4591 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() 4596 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() 4612 lcname = zend_string_alloc(ZSTR_LEN(function) - 1, 0); in zend_init_dynamic_call_string() 4613 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(function) + 1, ZSTR_LEN(function) - 1); in zend_init_dynamic_call_string() 4615 lcname = zend_string_tolower(function); in zend_init_dynamic_call_string() 4617 if (UNEXPECTED((func = zend_hash_find(EG(function_table), lcname)) == NULL)) { in zend_init_dynamic_call_string() 4619 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() [all …]
|
/PHP-8.1/sapi/phpdbg/ |
H A D | phpdbg_print.c | 160 zend_string *lcname = zend_string_alloc(strlen(param->method.name), 0); in PHPDBG_PRINT() local 161 zend_str_tolower_copy(ZSTR_VAL(lcname), param->method.name, ZSTR_LEN(lcname)); in PHPDBG_PRINT() 163 if ((fbc = zend_hash_find_ptr(&ce->function_table, lcname))) { in PHPDBG_PRINT() 174 zend_string_release(lcname); in PHPDBG_PRINT() 188 zend_string *lcname; in PHPDBG_PRINT() local 209 lcname = zend_string_alloc(func_name_len, 0); in PHPDBG_PRINT() 210 zend_str_tolower_copy(ZSTR_VAL(lcname), func_name, ZSTR_LEN(lcname)); in PHPDBG_PRINT() 213 if ((fbc = zend_hash_find_ptr(func_table, lcname))) { in PHPDBG_PRINT() 228 efree(lcname); in PHPDBG_PRINT()
|
H A D | phpdbg_list.c | 93 char *lcname = zend_str_tolower_dup(param->method.name, strlen(param->method.name)); in PHPDBG_LIST() local 95 if ((function = zend_hash_str_find_ptr(&ce->function_table, lcname, strlen(lcname)))) { in PHPDBG_LIST() 101 efree(lcname); in PHPDBG_LIST()
|
H A D | phpdbg_utils.c | 178 zend_string *lcname = zend_string_init(cname, strlen(cname), 0); in phpdbg_get_function() local 179 tmp = zend_string_tolower(lcname); in phpdbg_get_function() 180 zend_string_release(lcname); in phpdbg_get_function() 181 lcname = tmp; in phpdbg_get_function() 182 ce = zend_lookup_class(lcname); in phpdbg_get_function() 184 zend_string_release(lcname); in phpdbg_get_function()
|
H A D | phpdbg_prompt.c | 1423 char *lcname = zend_str_tolower_dup(param->str, param->len); in PHPDBG_COMMAND() local 1424 size_t lcname_len = strlen(lcname); in PHPDBG_COMMAND() 1426 if (!zend_hash_str_exists(&PHPDBG_G(registered), lcname, lcname_len)) { in PHPDBG_COMMAND() 1427 if ((function = zend_hash_str_find_ptr(EG(function_table), lcname, lcname_len))) { in PHPDBG_COMMAND() 1428 zend_hash_str_update_ptr(&PHPDBG_G(registered), lcname, lcname_len, function); in PHPDBG_COMMAND() 1431 phpdbg_notice("Registered %s", lcname); in PHPDBG_COMMAND() 1436 phpdbg_error("The requested name (%s) is already in use", lcname); in PHPDBG_COMMAND() 1439 efree(lcname); in PHPDBG_COMMAND()
|
H A D | phpdbg_bp.c | 406 char *lcname; in phpdbg_set_breakpoint_symbol() local 413 lcname = zend_str_tolower_dup(name, name_len); in phpdbg_set_breakpoint_symbol() 423 …zend_hash_str_update_mem(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], lcname, name_len, &new_break, sizeof(php… in phpdbg_set_breakpoint_symbol() 432 efree(lcname); in phpdbg_set_breakpoint_symbol() 990 zend_string *lcname = zend_string_tolower(ops->function_name); in phpdbg_find_breakpoint_method() local 992 brake = zend_hash_find_ptr(class_table, lcname); in phpdbg_find_breakpoint_method() 994 zend_string_release(lcname); in phpdbg_find_breakpoint_method()
|
/PHP-8.1/ext/standard/ |
H A D | browscap.c | 241 zend_string *lcname; in browscap_intern_str_ci() local 245 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(str), use_heap); in browscap_intern_str_ci() 246 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(str), ZSTR_LEN(str)); in browscap_intern_str_ci() 247 interned = zend_hash_find_ptr(&ctx->str_interned, lcname); in browscap_intern_str_ci() 252 interned = zend_string_init(ZSTR_VAL(lcname), ZSTR_LEN(lcname), persistent); in browscap_intern_str_ci() 259 ZSTR_ALLOCA_FREE(lcname, use_heap); in browscap_intern_str_ci()
|
H A D | var.c | 1368 zend_string *lcname; in php_unserialize_with_options() local 1372 lcname = zend_string_tolower(Z_STR_P(entry)); in php_unserialize_with_options() 1373 zend_hash_add_empty_element(class_hash, lcname); in php_unserialize_with_options() 1374 zend_string_release_ex(lcname, 0); in php_unserialize_with_options()
|
/PHP-8.1/ext/reflection/ |
H A D | php_reflection.c | 1274 zend_string *lcname; in reflection_extension_factory() local 1280 zend_string_efree(lcname); in reflection_extension_factory() 1568 zend_string *fname, *lcname; in ZEND_METHOD() local 1590 zend_string_release(lcname); in ZEND_METHOD() 2405 zend_string_release(lcname); in ZEND_METHOD() 2418 zend_string *name, *lcname; in ZEND_METHOD() local 3181 char *lcname; in ZEND_METHOD() local 3246 efree(lcname); in ZEND_METHOD() 3251 efree(lcname); in ZEND_METHOD() 5866 char *lcname; in ZEND_METHOD() local [all …]
|
/PHP-8.1/Zend/Optimizer/ |
H A D | zend_optimizer_internal.h | 99 zend_class_entry *zend_optimizer_get_class_entry(const zend_script *script, zend_string *lcname);
|
H A D | zend_optimizer.c | 735 zend_class_entry *zend_optimizer_get_class_entry(const zend_script *script, zend_string *lcname) { in zend_optimizer_get_class_entry() argument 736 zend_class_entry *ce = script ? zend_hash_find_ptr(&script->class_table, lcname) : NULL; in zend_optimizer_get_class_entry() 741 ce = zend_hash_find_ptr(CG(class_table), lcname); in zend_optimizer_get_class_entry()
|
H A D | dfa_pass.c | 320 zend_string *lcname = zend_string_tolower(ZEND_TYPE_NAME(*single_type)); in can_elide_return_type_check() local 321 zend_class_entry *ce = zend_optimizer_get_class_entry(script, lcname); in can_elide_return_type_check() 322 zend_string_release(lcname); in can_elide_return_type_check()
|
/PHP-8.1/sapi/cli/ |
H A D | php_cli.c | 1101 char *lcname = zend_str_tolower_dup(reflection_what, len); in do_cli() local 1104 if ((module = zend_hash_str_find_ptr(&module_registry, lcname, len)) == NULL) { in do_cli() 1115 efree(lcname); in do_cli()
|
/PHP-8.1/ext/opcache/ |
H A D | ZendAccelerator.c | 3906 zend_string *lcname = zend_string_tolower(ce->name); local 3909 if (zend_hash_exists(EG(class_table), lcname)) { 3910 zend_string_release(lcname); 3917 zend_string_release(lcname); 3921 zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, lcname); 3944 ce = zend_do_link_class(ce, NULL, lcname); 3979 zend_string_release(lcname); 4011 zend_string *lcname = zend_string_tolower(ce->name); local 4014 && zend_hash_exists(EG(class_table), lcname)) { 4030 zend_string_release(lcname);
|
H A D | zend_persist_calc.c | 158 ADD_INTERNED_STRING(attr->lcname); in zend_persist_attributes_calc()
|