Lines Matching refs:path_len
189 …har_archive_data *phar, char *filename, size_t filename_len, char *path, size_t path_len) /* {{{ */ in phar_mount_entry() argument
196 if (phar_path_check(&path, &path_len, &err) > pcr_is_ok) { in phar_mount_entry()
200 if (path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { in phar_mount_entry()
208 entry.filename = estrndup(path, path_len); in phar_mount_entry()
210 phar_unixify_path_separators(entry.filename, path_len); in phar_mount_entry()
212 entry.filename_len = path_len; in phar_mount_entry()
242 …if (NULL == zend_hash_str_add_ptr(&phar->mounted_dirs, entry.filename, path_len, entry.filename)) { in phar_mount_entry()
255 …if (NULL != zend_hash_str_add_mem(&phar->manifest, entry.filename, path_len, (void*)&entry, sizeof… in phar_mount_entry()
473 …har_entry_data **ret, char *fname, size_t fname_len, char *path, size_t path_len, const char *mode… in phar_get_entry_data() argument
503 if (!path_len) { in phar_get_entry_data()
511 …if ((entry = phar_get_entry_info_dir(phar, path, path_len, allow_dir, for_create && !PHAR_G(readon… in phar_get_entry_data()
518 …if ((entry = phar_get_entry_info(phar, path, path_len, for_create && !PHAR_G(readonly) && !phar->i… in phar_get_entry_data()
633 …_or_create_entry_data(char *fname, size_t fname_len, char *path, size_t path_len, const char *mode… in phar_get_or_create_entry_data() argument
642 phar_unixify_path_separators(path, path_len); in phar_get_or_create_entry_data()
645 is_dir = (path_len && path[path_len - 1] == '/') ? 1 : 0; in phar_get_or_create_entry_data()
651 …if (FAILURE == phar_get_entry_data(&ret, fname, fname_len, path, path_len, mode, allow_dir, error,… in phar_get_or_create_entry_data()
657 if (phar_path_check(&path, &path_len, &pcr_error) > pcr_is_ok) { in phar_get_or_create_entry_data()
676 etemp.filename_len = path_len; in phar_get_or_create_entry_data()
696 if (is_dir && path_len) { in phar_get_or_create_entry_data()
698 path_len--; in phar_get_or_create_entry_data()
701 phar_add_virtual_dirs(phar, path, path_len); in phar_get_or_create_entry_data()
706 etemp.filename = estrndup(path, path_len); in phar_get_or_create_entry_data()
714 …if (NULL == (entry = zend_hash_str_add_mem(&phar->manifest, etemp.filename, path_len, (void*)&etem… in phar_get_or_create_entry_data()
1244 phar_entry_info *phar_get_entry_info(phar_archive_data *phar, char *path, size_t path_len, char **e… in phar_get_entry_info() argument
1246 return phar_get_entry_info_dir(phar, path, path_len, 0, error, security); in phar_get_entry_info()
1254 phar_entry_info *phar_get_entry_info_dir(phar_archive_data *phar, char *path, size_t path_len, char… in phar_get_entry_info_dir() argument
1261 phar_unixify_path_separators(path, path_len); in phar_get_entry_info_dir()
1264 is_dir = (path_len && (path[path_len - 1] == '/')) ? 1 : 0; in phar_get_entry_info_dir()
1270 if (security && path_len >= sizeof(".phar")-1 && !memcmp(path, ".phar", sizeof(".phar")-1)) { in phar_get_entry_info_dir()
1277 if (!path_len && !dir) { in phar_get_entry_info_dir()
1284 if (phar_path_check(&path, &path_len, &pcr_error) > pcr_is_ok) { in phar_get_entry_info_dir()
1296 if (path_len <= 1) { in phar_get_entry_info_dir()
1299 path_len--; in phar_get_entry_info_dir()
1302 if (NULL != (entry = zend_hash_str_find_ptr(&phar->manifest, path, path_len))) { in phar_get_entry_info_dir()
1324 if (zend_hash_str_exists(&phar->virtual_dirs, path, path_len)) { in phar_get_entry_info_dir()
1329 entry->filename = (char *) estrndup(path, path_len + 1); in phar_get_entry_info_dir()
1330 entry->filename_len = path_len; in phar_get_entry_info_dir()
1340 if (ZSTR_LEN(str_key) >= path_len || strncmp(ZSTR_VAL(str_key), path, ZSTR_LEN(str_key))) { in phar_get_entry_info_dir()
1386 if (SUCCESS != phar_mount_entry(phar, test, test_len, path, path_len)) { in phar_get_entry_info_dir()
1396 if (NULL == (entry = zend_hash_str_find_ptr(&phar->manifest, path, path_len))) { in phar_get_entry_info_dir()