Lines Matching refs:str_key
620 zend_string *str_key; in phar_wrapper_stat() local
622 ZEND_HASH_MAP_FOREACH_STR_KEY(&phar->mounted_dirs, str_key) { in phar_wrapper_stat()
623 …if (ZSTR_LEN(str_key) >= internal_file_len || strncmp(ZSTR_VAL(str_key), internal_file, ZSTR_LEN(s… in phar_wrapper_stat()
630 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_wrapper_stat()
636 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, internal_file + ZSTR_LEN(str_key)); in phar_wrapper_stat()
884 zend_string *str_key; in phar_wrapper_rename() local
890 str_key = b->key; in phar_wrapper_rename()
893 ZSTR_LEN(str_key) > from_len && in phar_wrapper_rename()
894 memcmp(ZSTR_VAL(str_key), ZSTR_VAL(resource_from->path)+1, from_len) == 0 && in phar_wrapper_rename()
895 IS_SLASH(ZSTR_VAL(str_key)[from_len])) { in phar_wrapper_rename()
897 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
899 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
909 zend_string_release_ex(str_key, 0); in phar_wrapper_rename()
917 str_key = b->key; in phar_wrapper_rename()
918 if (zend_string_starts_with_cstr(str_key, ZSTR_VAL(resource_from->path)+1, from_len) && in phar_wrapper_rename()
919 (ZSTR_LEN(str_key) == from_len || IS_SLASH(ZSTR_VAL(str_key)[from_len]))) { in phar_wrapper_rename()
921 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
923 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
926 zend_string_release_ex(str_key, 0); in phar_wrapper_rename()
934 str_key = b->key; in phar_wrapper_rename()
935 if (zend_string_starts_with_cstr(str_key, ZSTR_VAL(resource_from->path)+1, from_len) && in phar_wrapper_rename()
936 (ZSTR_LEN(str_key) == from_len || IS_SLASH(ZSTR_VAL(str_key)[from_len]))) { in phar_wrapper_rename()
938 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
940 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
943 zend_string_release_ex(str_key, 0); in phar_wrapper_rename()