Lines Matching refs:str_key
97 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()
105 to_read = MIN(ZSTR_LEN(str_key), count); in phar_dir_read()
107 if (to_read == 0 || count < ZSTR_LEN(str_key)) { in phar_dir_read()
112 memcpy(((php_stream_dirent *) buf)->d_name, ZSTR_VAL(str_key), to_read); in phar_dir_read()
185 zend_string *str_key; in phar_make_dirstream() local
203 if (HASH_KEY_NON_EXISTENT == zend_hash_get_current_key(manifest, &str_key, &unused)) { in phar_make_dirstream()
207 keylen = ZSTR_LEN(str_key); in phar_make_dirstream()
209 if (keylen == 0 || keylen < (uint)dirlen || !strncmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
219 if (keylen >= sizeof(".phar")-1 && !memcmp(ZSTR_VAL(str_key), ".phar", sizeof(".phar")-1)) { in phar_make_dirstream()
227 if (NULL != (found = (char *) memchr(ZSTR_VAL(str_key), '/', keylen))) { in phar_make_dirstream()
229 entry = (char *) safe_emalloc(found - ZSTR_VAL(str_key), 1, 1); in phar_make_dirstream()
230 memcpy(entry, ZSTR_VAL(str_key), found - ZSTR_VAL(str_key)); in phar_make_dirstream()
231 keylen = found - ZSTR_VAL(str_key); in phar_make_dirstream()
235 memcpy(entry, ZSTR_VAL(str_key), keylen); in phar_make_dirstream()
241 if (0 != memcmp(ZSTR_VAL(str_key), dir, dirlen)) { in phar_make_dirstream()
248 if (ZSTR_VAL(str_key)[dirlen] != '/') { in phar_make_dirstream() local
257 save = ZSTR_VAL(str_key); in phar_make_dirstream()
309 zend_string *str_key; in phar_wrapper_open_dir() local
388 zend_hash_get_current_key(&phar->manifest, &str_key, &unused)) { in phar_wrapper_open_dir()
389 if (ZSTR_LEN(str_key) > (uint)i_len && 0 == memcmp(ZSTR_VAL(str_key), internal_file, i_len)) { in phar_wrapper_open_dir()
552 zend_string *str_key; in phar_wrapper_rmdir() local
615 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key(&phar->manifest, &str_key, &unused); in phar_wrapper_rmdir()
618 if (ZSTR_LEN(str_key) > path_len && in phar_wrapper_rmdir()
619 memcmp(ZSTR_VAL(str_key), resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
620 IS_SLASH(ZSTR_VAL(str_key)[path_len])) { in phar_wrapper_rmdir()
632 HASH_KEY_NON_EXISTENT != zend_hash_get_current_key(&phar->virtual_dirs, &str_key, &unused); in phar_wrapper_rmdir()
635 if (ZSTR_LEN(str_key) > path_len && in phar_wrapper_rmdir()
636 memcmp(ZSTR_VAL(str_key), resource->path+1, path_len) == 0 && in phar_wrapper_rmdir()
637 IS_SLASH(ZSTR_VAL(str_key)[path_len])) { in phar_wrapper_rmdir()