Lines Matching refs:lc_name
68 zend_string *lc_name = zend_string_alloc(ZSTR_LEN(name), 0); in spl_find_ce_by_name() local
69 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(name), ZSTR_LEN(name)); in spl_find_ce_by_name()
71 ce = zend_hash_find_ptr(EG(class_table), lc_name); in spl_find_ce_by_name()
72 zend_string_free(lc_name); in spl_find_ce_by_name()
246 static int spl_autoload(zend_string *class_name, zend_string *lc_name, const char *ext, int ext_len… in spl_autoload() argument
256 class_file_len = (int)spprintf(&class_file, 0, "%s%.*s", ZSTR_VAL(lc_name), ext_len, ext); in spl_autoload()
297 return zend_hash_exists(EG(class_table), lc_name); in spl_autoload()
310 zend_string *class_name, *lc_name, *file_exts = SPL_G(autoload_extensions); in PHP_FUNCTION() local
324 lc_name = zend_string_alloc(ZSTR_LEN(class_name), 0); in PHP_FUNCTION()
325 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(class_name), ZSTR_LEN(class_name)); in PHP_FUNCTION()
333 if (spl_autoload(class_name, lc_name, pos, pos1_len)) { in PHP_FUNCTION()
339 zend_string_free(lc_name); in PHP_FUNCTION()
395 zend_string *lc_name, *func_name; in PHP_FUNCTION() local
412 lc_name = zend_string_tolower(Z_STR_P(class_name)); in PHP_FUNCTION()
456 zend_hash_exists(EG(class_table), lc_name)) { in PHP_FUNCTION()
462 zend_string_release(lc_name); in PHP_FUNCTION()
485 zend_string *lc_name; in PHP_FUNCTION() local
561 lc_name = zend_string_alloc(ZSTR_LEN(func_name) + sizeof(uint32_t), 0); in PHP_FUNCTION()
562 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(func_name), ZSTR_LEN(func_name)); in PHP_FUNCTION()
563 memcpy(ZSTR_VAL(lc_name) + ZSTR_LEN(func_name), &Z_OBJ_HANDLE_P(zcallable), sizeof(uint32_t)); in PHP_FUNCTION()
564 ZSTR_VAL(lc_name)[ZSTR_LEN(lc_name)] = '\0'; in PHP_FUNCTION() local
569 lc_name = zend_string_alloc(ZSTR_LEN(func_name) - 1, 0); in PHP_FUNCTION()
570 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(func_name) + 1, ZSTR_LEN(func_name) - 1); in PHP_FUNCTION()
572 lc_name = zend_string_alloc(ZSTR_LEN(func_name), 0); in PHP_FUNCTION()
573 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(func_name), ZSTR_LEN(func_name)); in PHP_FUNCTION()
578 if (SPL_G(autoload_functions) && zend_hash_exists(SPL_G(autoload_functions), lc_name)) { in PHP_FUNCTION()
587 lc_name = zend_string_extend(lc_name, ZSTR_LEN(lc_name) + sizeof(uint32_t), 0); in PHP_FUNCTION()
588 …memcpy(ZSTR_VAL(lc_name) + ZSTR_LEN(lc_name) - sizeof(uint32_t), &obj_ptr->handle, sizeof(uint32_t… in PHP_FUNCTION()
589 ZSTR_VAL(lc_name)[ZSTR_LEN(lc_name)] = '\0'; in PHP_FUNCTION() local
625 …if (zend_hash_add_mem(SPL_G(autoload_functions), lc_name, &alfi, sizeof(autoload_func_info)) == NU… in PHP_FUNCTION()
642 zend_string_release(lc_name); in PHP_FUNCTION()
660 zend_string *lc_name; in PHP_FUNCTION() local
687 lc_name = zend_string_alloc(ZSTR_LEN(func_name) + sizeof(uint32_t), 0); in PHP_FUNCTION()
688 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(func_name), ZSTR_LEN(func_name)); in PHP_FUNCTION()
689 memcpy(ZSTR_VAL(lc_name) + ZSTR_LEN(func_name), &Z_OBJ_HANDLE_P(zcallable), sizeof(uint32_t)); in PHP_FUNCTION()
690 ZSTR_VAL(lc_name)[ZSTR_LEN(lc_name)] = '\0'; in PHP_FUNCTION() local
694 lc_name = zend_string_alloc(ZSTR_LEN(func_name) - 1, 0); in PHP_FUNCTION()
695 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(func_name) + 1, ZSTR_LEN(func_name) - 1); in PHP_FUNCTION()
697 lc_name = zend_string_alloc(ZSTR_LEN(func_name), 0); in PHP_FUNCTION()
698 zend_str_tolower_copy(ZSTR_VAL(lc_name), ZSTR_VAL(func_name), ZSTR_LEN(func_name)); in PHP_FUNCTION()
704 …if (ZSTR_LEN(lc_name) == sizeof("spl_autoload_call") - 1 && !strcmp(ZSTR_VAL(lc_name), "spl_autolo… in PHP_FUNCTION()
717 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
719 lc_name = zend_string_extend(lc_name, ZSTR_LEN(lc_name) + sizeof(uint32_t), 0); in PHP_FUNCTION()
720 …memcpy(ZSTR_VAL(lc_name) + ZSTR_LEN(lc_name) - sizeof(uint32_t), &obj_ptr->handle, sizeof(uint32_t… in PHP_FUNCTION()
721 ZSTR_VAL(lc_name)[ZSTR_LEN(lc_name)] = '\0'; in PHP_FUNCTION() local
722 success = zend_hash_del(SPL_G(autoload_functions), lc_name); in PHP_FUNCTION()
725 …} else if (ZSTR_LEN(lc_name) == sizeof("spl_autoload")-1 && !strcmp(ZSTR_VAL(lc_name), "spl_autolo… in PHP_FUNCTION()
735 zend_string_release(lc_name); in PHP_FUNCTION()