/php-src/Zend/ |
H A D | zend_attributes.c | 202 if (attr->offset == offset && zend_string_equals(attr->lcname, lcname)) { in get_attribute() 217 if (attr->offset == offset && zend_string_equals_cstr(attr->lcname, str, len)) { in get_attribute_str() 228 return get_attribute(attributes, lcname, 0); in zend_get_attribute() 238 return get_attribute(attributes, lcname, offset + 1); in zend_get_parameter_attribute() 383 if (zend_string_equals(other->lcname, attr->lcname)) { in zend_is_attribute_repeated() 398 zend_string_release(attr->lcname); in attr_free() 430 attr->lcname = zend_string_tolower_ex(attr->name, persistent); in zend_add_attribute() 468 zend_string *lcname = zend_string_tolower_ex(ce->name, 1); in zend_mark_internal_attribute() local 469 zend_hash_update_ptr(&internal_attributes, lcname, internal_attr); in zend_mark_internal_attribute() 470 zend_string_release(lcname); in zend_mark_internal_attribute() [all …]
|
H A D | zend_attributes.h | 58 zend_string *lcname; member 73 ZEND_API zend_attribute *zend_get_attribute(HashTable *attributes, zend_string *lcname); 76 ZEND_API zend_attribute *zend_get_parameter_attribute(HashTable *attributes, zend_string *lcname, u… 87 ZEND_API zend_internal_attribute *zend_internal_attribute_get(zend_string *lcname);
|
H A D | zend_API.c | 2386 zend_string *lcname; in zend_startup_module_ex() local 2412 zend_string_efree(lcname); in zend_startup_module_ex() 2585 zend_string *lcname; in zend_register_module_ex() local 2612 zend_string_efree(lcname); in zend_register_module_ex() 2624 lcname = zend_new_interned_string(lcname); in zend_register_module_ex() 2627 zend_string_release(lcname); in zend_register_module_ex() 2645 zend_string_release(lcname); in zend_register_module_ex() 2856 if (ZSTR_VAL(lcname)[0] != '_' || ZSTR_VAL(lcname)[1] != '_') { in zend_add_magic_method() local 3557 zend_string *lcname; in zend_register_class_alias_ex() local 3575 lcname = zend_new_interned_string(lcname); in zend_register_class_alias_ex() [all …]
|
H A D | zend_builtin_functions.c | 937 zend_string *lcname; in ZEND_FUNCTION() local 960 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() 1059 zend_string *lcname; in _class_exists_impl() local 1079 zend_string_release_ex(lcname, 0); in _class_exists_impl() 1165 zend_string *lcname; in ZEND_FUNCTION() local 1176 lcname = zend_string_tolower(name); in ZEND_FUNCTION() 1180 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() 2170 zend_string *lcname; in ZEND_FUNCTION() local 2182 zend_string_release_ex(lcname, 0); in ZEND_FUNCTION() 2190 zend_string *lcname; in ZEND_FUNCTION() local [all …]
|
H A D | zend_constants.c | 431 char *lcname; in zend_get_constant_ex() local 437 lcname = do_alloca(lcname_len + 1, use_heap); in zend_get_constant_ex() 438 zend_str_tolower_copy(lcname, name, prefix_len); in zend_get_constant_ex() 440 lcname[prefix_len] = '\\'; in zend_get_constant_ex() 441 memcpy(lcname + prefix_len + 1, constant_name, const_name_len + 1); in zend_get_constant_ex() 443 c = zend_hash_str_find_ptr(EG(zend_constants), lcname, lcname_len); in zend_get_constant_ex() 444 free_alloca(lcname, use_heap); in zend_get_constant_ex()
|
H A D | zend_compile.c | 1349 rtd_key = lcname + 1; in do_bind_class() 4227 zend_string *name, *lcname; in zend_try_compile_ct_bound_init_user_func() local 5160 zend_string *lcname; in zend_compile_call() local 8056 zend_string *lcname; in zend_begin_method_decl() local 8115 lcname = zend_new_interned_string(lcname); in zend_begin_method_decl() 8128 return lcname; in zend_begin_method_decl() 8224 return lcname; in zend_begin_func_decl() 8239 zend_string *lcname = NULL; in zend_compile_func_decl_ex() local 8394 if (lcname != NULL) { in zend_compile_func_decl_ex() 9038 lcname = NULL; in zend_compile_class_decl() [all …]
|
H A D | zend_inheritance.h | 39 …rly_bind(zend_class_entry *ce, zend_class_entry *parent_ce, zend_string *lcname, zval *delayed_ear…
|
H A D | zend_inheritance.c | 2378 zend_string *lcname; in zend_traits_copy_functions() local 2402 lcname = zend_string_tolower(alias->alias); in zend_traits_copy_functions() 2404 zend_string_release_ex(lcname, 0); in zend_traits_copy_functions() 2472 zend_string *lcname; in zend_traits_init_trait_structures() local 2496 if (!zend_hash_exists(&trait->function_table, lcname)) { in zend_traits_init_trait_structures() 2541 zend_string_release_ex(lcname, 0); in zend_traits_init_trait_structures() 2570 if (!zend_hash_exists(&trait->function_table, lcname)) { in zend_traits_init_trait_structures() 2610 zend_string_release_ex(lcname, 0); in zend_traits_init_trait_structures() 3808 zend_observer_class_linked_notify(ce, lcname); in zend_try_early_bind() 3821 zend_observer_class_linked_notify(ret, lcname); in zend_try_early_bind() [all …]
|
H A D | zend_compile.h | 912 zval *class_table_slot, zval *lcname, zend_string *lc_parent_name); 913 ZEND_API zend_result do_bind_function(zend_function *func, zval *lcname); 914 ZEND_API zend_result do_bind_class(zval *lcname, zend_string *lc_parent_name);
|
H A D | zend_execute.h | 52 ZEND_API zend_class_entry *zend_lookup_class_ex(zend_string *name, zend_string *lcname, uint32_t fl… 407 ZEND_API zend_class_entry *zend_fetch_class_by_name(zend_string *class_name, zend_string *lcname, u…
|
H A D | zend_execute.c | 4903 zend_string *lcname; in zend_init_dynamic_call_string() local 4914 lcname = zend_string_init(ZSTR_VAL(function), cname_length, 0); in zend_init_dynamic_call_string() 4918 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() 4933 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() 4938 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() 4954 lcname = zend_string_alloc(ZSTR_LEN(function) - 1, 0); in zend_init_dynamic_call_string() 4955 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(function) + 1, ZSTR_LEN(function) - 1); in zend_init_dynamic_call_string() 4957 lcname = zend_string_tolower(function); in zend_init_dynamic_call_string() 4959 if (UNEXPECTED((func = zend_hash_find(EG(function_table), lcname)) == NULL)) { in zend_init_dynamic_call_string() 4961 zend_string_release_ex(lcname, 0); in zend_init_dynamic_call_string() [all …]
|
/php-src/sapi/phpdbg/ |
H A D | phpdbg_print.c | 158 zend_string *lcname = zend_string_alloc(strlen(param->method.name), 0); in PHPDBG_PRINT() local 159 zend_str_tolower_copy(ZSTR_VAL(lcname), param->method.name, ZSTR_LEN(lcname)); in PHPDBG_PRINT() 161 if ((fbc = zend_hash_find_ptr(&ce->function_table, lcname))) { in PHPDBG_PRINT() 172 zend_string_release(lcname); in PHPDBG_PRINT() 186 zend_string *lcname; in PHPDBG_PRINT() local 207 lcname = zend_string_alloc(func_name_len, 0); in PHPDBG_PRINT() 208 zend_str_tolower_copy(ZSTR_VAL(lcname), func_name, ZSTR_LEN(lcname)); in PHPDBG_PRINT() 211 if ((fbc = zend_hash_find_ptr(func_table, lcname))) { in PHPDBG_PRINT() 226 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 | 1417 char *lcname = zend_str_tolower_dup(param->str, param->len); in PHPDBG_COMMAND() local 1420 if (!zend_hash_str_exists(&PHPDBG_G(registered), lcname, lcname_len)) { in PHPDBG_COMMAND() 1421 if ((function = zend_hash_str_find_ptr(EG(function_table), lcname, lcname_len))) { in PHPDBG_COMMAND() 1422 zend_hash_str_update_ptr(&PHPDBG_G(registered), lcname, lcname_len, function); in PHPDBG_COMMAND() 1425 phpdbg_notice("Registered %s", lcname); in PHPDBG_COMMAND() 1430 phpdbg_error("The requested name (%s) is already in use", lcname); in PHPDBG_COMMAND() 1433 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-src/ext/opcache/ |
H A D | zend_accelerator_util_funcs.c | 280 zval *lcname = RT_CONSTANT(opline, opline->op1); in zend_accel_build_delayed_early_binding_list() local 281 early_binding->lcname = zend_string_copy(Z_STR_P(lcname)); in zend_accel_build_delayed_early_binding_list() 282 early_binding->rtd_key = zend_string_copy(Z_STR_P(lcname + 1)); in zend_accel_build_delayed_early_binding_list() 327 zend_string_release(early_binding->lcname); in zend_accel_free_delayed_early_binding_list() 353 zend_class_entry *ce = zend_hash_find_ex_ptr(EG(class_table), early_binding->lcname, 1); in zend_accel_do_delayed_early_binding() 362 ce = zend_try_early_bind(orig_ce, parent_ce, early_binding->lcname, zv); in zend_accel_do_delayed_early_binding()
|
H A D | ZendAccelerator.h | 113 zend_string *lcname; member
|
H A D | zend_persist_calc.c | 171 ADD_INTERNED_STRING(attr->lcname); in zend_persist_attributes_calc() 598 ADD_INTERNED_STRING(early_binding->lcname); in zend_persist_early_bindings_calc()
|
H A D | ZendAccelerator.c | 3926 zend_string *lcname = zend_string_tolower(ce->name); local 3928 if (zend_hash_exists(EG(class_table), lcname)) { 3929 zend_string_release(lcname); 3936 zend_string_release(lcname); 3940 zv = zend_hash_set_bucket_key(EG(class_table), (Bucket*)zv, lcname); 3963 ce = zend_do_link_class(ce, NULL, lcname); 3996 zend_string_release(lcname); 4027 zend_string *lcname = zend_string_tolower(ce->name); local 4030 && zend_hash_exists(EG(class_table), lcname)) { 4046 zend_string_release(lcname);
|
/php-src/ext/standard/ |
H A D | browscap.c | 234 zend_string *lcname; in browscap_intern_str_ci() local 238 ZSTR_ALLOCA_ALLOC(lcname, ZSTR_LEN(str), use_heap); in browscap_intern_str_ci() 239 zend_str_tolower_copy(ZSTR_VAL(lcname), ZSTR_VAL(str), ZSTR_LEN(str)); in browscap_intern_str_ci() 240 interned = zend_hash_find_ptr(&ctx->str_interned, lcname); in browscap_intern_str_ci() 245 interned = zend_string_init(ZSTR_VAL(lcname), ZSTR_LEN(lcname), persistent); in browscap_intern_str_ci() 252 ZSTR_ALLOCA_FREE(lcname, use_heap); in browscap_intern_str_ci()
|
/php-src/ext/reflection/ |
H A D | php_reflection.c | 1337 zend_string *lcname; in reflection_extension_factory() local 1343 zend_string_efree(lcname); in reflection_extension_factory() 1635 zend_string *fname, *lcname; in ZEND_METHOD() local 1657 zend_string_release(lcname); in ZEND_METHOD() 2412 zend_string_release(lcname); in ZEND_METHOD() 2425 zend_string *name, *lcname; in ZEND_METHOD() local 3169 char *lcname; in instantiate_reflection_method() local 3253 efree(lcname); in instantiate_reflection_method() 3258 efree(lcname); in instantiate_reflection_method() 6437 char *lcname; in ZEND_METHOD() local [all …]
|
/php-src/Zend/Optimizer/ |
H A D | zend_optimizer_internal.h | 105 const zend_script *script, const zend_op_array *op_array, zend_string *lcname);
|
H A D | zend_optimizer.c | 832 const zend_script *script, const zend_op_array *op_array, zend_string *lcname) { in zend_optimizer_get_class_entry() argument 833 zend_class_entry *ce = script ? zend_hash_find_ptr(&script->class_table, lcname) : NULL; in zend_optimizer_get_class_entry() 838 zval *ce_zv = zend_hash_find(CG(class_table), lcname); in zend_optimizer_get_class_entry() 843 if (op_array && op_array->scope && zend_string_equals_ci(op_array->scope->name, lcname)) { in zend_optimizer_get_class_entry()
|
/php-src/sapi/cli/ |
H A D | php_cli.c | 1075 char *lcname = zend_str_tolower_dup(reflection_what, len); in do_cli() local 1078 if ((module = zend_hash_str_find_ptr(&module_registry, lcname, len)) == NULL) { in do_cli() 1089 efree(lcname); in do_cli()
|