Lines Matching refs:entry
46 char *arch, *entry, *fname; in PHAR_FUNC() local
57 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
62 efree(entry); in PHAR_FUNC()
63 entry = estrndup(filename, filename_len); in PHAR_FUNC()
67 entry = phar_fix_filepath(entry, &entry_len, 1); in PHAR_FUNC()
69 if (entry[0] == '/') { in PHAR_FUNC()
70 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
72 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
74 efree(entry); in PHAR_FUNC()
120 char *arch, *entry, *fname; in PHAR_FUNC() local
131 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
135 efree(entry); in PHAR_FUNC()
136 entry = filename; in PHAR_FUNC()
152 if ((entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
161 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
162 if (entry[0] == '/') { in PHAR_FUNC()
163 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
167 efree(entry); in PHAR_FUNC()
171 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
176 if (entry[0] == '/') { in PHAR_FUNC()
177 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
179 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
181 if (entry != filename) { in PHAR_FUNC()
182 efree(entry); in PHAR_FUNC()
250 char *arch, *entry, *fname; in PHAR_FUNC() local
262 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
266 efree(entry); in PHAR_FUNC()
267 entry = filename; in PHAR_FUNC()
276 if (!(entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
284 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
285 if (entry[0] == '/') { in PHAR_FUNC()
286 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
289 efree(entry); in PHAR_FUNC()
294 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
299 if (entry[0] == '/') { in PHAR_FUNC()
300 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
302 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
304 efree(entry); in PHAR_FUNC()
351 char *arch, *entry, *fname; in PHAR_FUNC() local
363 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
367 efree(entry); in PHAR_FUNC()
368 entry = filename; in PHAR_FUNC()
377 if (!(entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
385 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
386 if (entry[0] == '/') { in PHAR_FUNC()
387 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
390 efree(entry); in PHAR_FUNC()
395 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
401 if (entry[0] == '/') { in PHAR_FUNC()
402 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
404 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
406 efree(entry); in PHAR_FUNC()
615 char *arch, *entry, *fname; in phar_file_stat() local
633 entry = estrndup(filename, filename_length); in phar_file_stat()
639 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in phar_file_stat()
641 efree(entry); in phar_file_stat()
642 entry = estrndup(filename, filename_length); in phar_file_stat()
647 efree(entry); in phar_file_stat()
651 entry = phar_fix_filepath(entry, &entry_len, 1); in phar_file_stat()
652 if (entry[0] == '/') { in phar_file_stat()
653 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in phar_file_stat()
654 efree(entry); in phar_file_stat()
659 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in phar_file_stat()
660 efree(entry); in phar_file_stat()
663 if (zend_hash_str_exists(&(phar->virtual_dirs), entry, entry_len)) { in phar_file_stat()
664 efree(entry); in phar_file_stat()
687 efree(entry); in phar_file_stat()
691 entry = estrndup(filename, filename_length); in phar_file_stat()
696 entry = phar_fix_filepath(entry, &entry_len, 1); in phar_file_stat()
697 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in phar_file_stat()
700 efree(entry); in phar_file_stat()
707 if (zend_hash_str_exists(&(phar->virtual_dirs), entry + 1, entry_len - 1)) { in phar_file_stat()
710 efree(entry); in phar_file_stat()
731 efree(entry); in phar_file_stat()
909 char *arch, *entry, *fname; in PharFileFunction() local
920 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PharFileFunction()
923 efree(entry); in PharFileFunction()
924 entry = filename; in PharFileFunction()
931 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PharFileFunction()
932 if (entry[0] == '/') { in PharFileFunction()
933 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in PharFileFunction()
936 efree(entry); in PharFileFunction()
941 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in PharFileFunction()
946 if (entry != filename) { in PharFileFunction()
947 efree(entry); in PharFileFunction()
976 char *arch, *entry, *fname; in PHAR_FUNC() local
987 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
990 efree(entry); in PHAR_FUNC()
991 entry = filename; in PHAR_FUNC()
998 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
999 if (entry[0] == '/') { in PHAR_FUNC()
1000 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in PHAR_FUNC()
1003 efree(entry); in PHAR_FUNC()
1008 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in PHAR_FUNC()
1013 efree(entry); in PHAR_FUNC()