Lines Matching refs:str_key
633 zend_string *str_key; in phar_wrapper_stat() local
635 ZEND_HASH_FOREACH_STR_KEY(&phar->mounted_dirs, str_key) { in phar_wrapper_stat()
636 …if ((int)ZSTR_LEN(str_key) >= internal_file_len || strncmp(ZSTR_VAL(str_key), internal_file, ZSTR_… in phar_wrapper_stat()
643 if (NULL == (entry = zend_hash_find_ptr(&phar->manifest, str_key))) { in phar_wrapper_stat()
649 test_len = spprintf(&test, MAXPATHLEN, "%s%s", entry->tmp, internal_file + ZSTR_LEN(str_key)); in phar_wrapper_stat()
900 zend_string *str_key; in phar_wrapper_rename() local
906 str_key = b->key; in phar_wrapper_rename()
909 ZSTR_LEN(str_key) > from_len && in phar_wrapper_rename()
910 memcmp(ZSTR_VAL(str_key), resource_from->path+1, from_len) == 0 && in phar_wrapper_rename()
911 IS_SLASH(ZSTR_VAL(str_key)[from_len])) { in phar_wrapper_rename()
913 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
915 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
925 zend_string_release(str_key); in phar_wrapper_rename()
933 str_key = b->key; in phar_wrapper_rename()
934 if (ZSTR_LEN(str_key) >= from_len && in phar_wrapper_rename()
935 memcmp(ZSTR_VAL(str_key), resource_from->path+1, from_len) == 0 && 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(str_key); in phar_wrapper_rename()
951 str_key = b->key; in phar_wrapper_rename()
952 if (ZSTR_LEN(str_key) >= from_len && in phar_wrapper_rename()
953 memcmp(ZSTR_VAL(str_key), resource_from->path+1, from_len) == 0 && in phar_wrapper_rename()
954 (ZSTR_LEN(str_key) == from_len || IS_SLASH(ZSTR_VAL(str_key)[from_len]))) { in phar_wrapper_rename()
956 new_str_key = zend_string_alloc(ZSTR_LEN(str_key) + to_len - from_len, 0); in phar_wrapper_rename()
958 …memcpy(ZSTR_VAL(new_str_key) + to_len, ZSTR_VAL(str_key) + from_len, ZSTR_LEN(str_key) - from_len); in phar_wrapper_rename()
961 zend_string_release(str_key); in phar_wrapper_rename()