Lines Matching refs:str_key
93 zend_string *str_key; in phar_dir_read() local
100 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key(data, &str_key, &unused)) { in phar_dir_read()
108 if (sizeof(dirent->d_name) <= ZSTR_LEN(str_key)) { in phar_dir_read()
113 PHP_STRLCPY(dirent->d_name, ZSTR_VAL(str_key), sizeof(dirent->d_name), ZSTR_LEN(str_key)); in phar_dir_read()
167 zend_string *str_key; in phar_make_dirstream() local
168 ZEND_HASH_MAP_FOREACH_STR_KEY(manifest, str_key) { in phar_make_dirstream()
169 size_t keylen = ZSTR_LEN(str_key); in phar_make_dirstream()
171 if (keylen == 0 || keylen < dirlen || !strncmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
178 if (zend_string_starts_with_literal(str_key, ".phar")) { in phar_make_dirstream()
183 const char *has_slash = memchr(ZSTR_VAL(str_key), '/', keylen); in phar_make_dirstream()
186 keylen = has_slash - ZSTR_VAL(str_key); in phar_make_dirstream()
189 memcpy(entry, ZSTR_VAL(str_key), keylen); in phar_make_dirstream()
194 if (0 != memcmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
198 if (ZSTR_VAL(str_key)[dirlen] != '/') { in phar_make_dirstream() local
204 const char *save = ZSTR_VAL(str_key); in phar_make_dirstream()
327 zend_string *str_key; in phar_wrapper_open_dir() local
330 ZEND_HASH_MAP_FOREACH_STR_KEY(&phar->manifest, str_key) { in phar_wrapper_open_dir()
331 if (zend_string_starts_with_cstr(str_key, internal_file, internal_file_len)) { in phar_wrapper_open_dir()
541 zend_string *str_key; in phar_wrapper_rmdir() local
543 ZEND_HASH_MAP_FOREACH_STR_KEY(&phar->manifest, str_key) { in phar_wrapper_rmdir()
545 zend_string_starts_with_cstr(str_key, ZSTR_VAL(resource->path)+1, path_len) in phar_wrapper_rmdir()
546 && IS_SLASH(ZSTR_VAL(str_key)[path_len]) in phar_wrapper_rmdir()
558 ZEND_HASH_MAP_FOREACH_STR_KEY(&phar->virtual_dirs, str_key) { in phar_wrapper_rmdir()
559 ZEND_ASSERT(str_key); in phar_wrapper_rmdir()
561 zend_string_starts_with_cstr(str_key, ZSTR_VAL(resource->path)+1, path_len) in phar_wrapper_rmdir()
562 && IS_SLASH(ZSTR_VAL(str_key)[path_len]) in phar_wrapper_rmdir()