Lines Matching refs:entry
44 char *arch, *entry, *fname; in PHAR_FUNC() local
55 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
60 efree(entry); in PHAR_FUNC()
61 entry = estrndup(filename, filename_len); in PHAR_FUNC()
65 entry = phar_fix_filepath(entry, &entry_len, 1); in PHAR_FUNC()
67 if (entry[0] == '/') { in PHAR_FUNC()
68 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
70 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
72 efree(entry); in PHAR_FUNC()
118 char *arch, *entry, *fname; in PHAR_FUNC() local
129 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
133 efree(entry); in PHAR_FUNC()
134 entry = filename; in PHAR_FUNC()
150 if ((entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
159 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
160 if (entry[0] == '/') { in PHAR_FUNC()
161 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
165 efree(entry); in PHAR_FUNC()
169 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
174 if (entry[0] == '/') { in PHAR_FUNC()
175 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
177 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
179 if (entry != filename) { in PHAR_FUNC()
180 efree(entry); in PHAR_FUNC()
248 char *arch, *entry, *fname; in PHAR_FUNC() local
260 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
264 efree(entry); in PHAR_FUNC()
265 entry = filename; in PHAR_FUNC()
274 if (!(entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
282 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
283 if (entry[0] == '/') { in PHAR_FUNC()
284 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
287 efree(entry); in PHAR_FUNC()
292 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
297 if (entry[0] == '/') { in PHAR_FUNC()
298 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
300 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
302 efree(entry); in PHAR_FUNC()
349 char *arch, *entry, *fname; in PHAR_FUNC() local
361 if (FAILURE == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
365 efree(entry); in PHAR_FUNC()
366 entry = filename; in PHAR_FUNC()
375 if (!(entry_str = phar_find_in_include_path(entry, entry_len, NULL))) { in PHAR_FUNC()
383 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
384 if (entry[0] == '/') { in PHAR_FUNC()
385 if (!zend_hash_str_exists(&(phar->manifest), entry + 1, entry_len - 1)) { in PHAR_FUNC()
388 efree(entry); in PHAR_FUNC()
393 if (!zend_hash_str_exists(&(phar->manifest), entry, entry_len)) { in PHAR_FUNC()
399 if (entry[0] == '/') { in PHAR_FUNC()
400 spprintf(&name, 4096, "phar://%s%s", arch, entry); in PHAR_FUNC()
402 spprintf(&name, 4096, "phar://%s/%s", arch, entry); in PHAR_FUNC()
404 efree(entry); in PHAR_FUNC()
593 char *arch, *entry, *fname; in phar_file_stat() local
611 entry = estrndup(filename, filename_length); in phar_file_stat()
617 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in phar_file_stat()
619 efree(entry); in phar_file_stat()
620 entry = estrndup(filename, filename_length); in phar_file_stat()
625 efree(entry); in phar_file_stat()
629 entry = phar_fix_filepath(entry, &entry_len, 1); in phar_file_stat()
630 if (entry[0] == '/') { in phar_file_stat()
631 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in phar_file_stat()
632 efree(entry); in phar_file_stat()
637 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in phar_file_stat()
638 efree(entry); in phar_file_stat()
641 if (zend_hash_str_exists(&(phar->virtual_dirs), entry, entry_len)) { in phar_file_stat()
642 efree(entry); in phar_file_stat()
659 efree(entry); in phar_file_stat()
663 entry = estrndup(filename, filename_length); in phar_file_stat()
668 entry = phar_fix_filepath(entry, &entry_len, 1); in phar_file_stat()
669 if (NULL != (data = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in phar_file_stat()
672 efree(entry); in phar_file_stat()
679 if (zend_hash_str_exists(&(phar->virtual_dirs), entry + 1, entry_len - 1)) { in phar_file_stat()
682 efree(entry); in phar_file_stat()
697 efree(entry); in phar_file_stat()
863 char *arch, *entry, *fname; in PharFileFunction() local
874 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PharFileFunction()
877 efree(entry); in PharFileFunction()
878 entry = filename; in PharFileFunction()
885 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PharFileFunction()
886 if (entry[0] == '/') { in PharFileFunction()
887 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in PharFileFunction()
890 efree(entry); in PharFileFunction()
895 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in PharFileFunction()
900 if (entry != filename) { in PharFileFunction()
901 efree(entry); in PharFileFunction()
930 char *arch, *entry, *fname; in PHAR_FUNC() local
941 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) { in PHAR_FUNC()
944 efree(entry); in PHAR_FUNC()
945 entry = filename; in PHAR_FUNC()
952 entry = phar_fix_filepath(estrndup(entry, entry_len), &entry_len, 1); in PHAR_FUNC()
953 if (entry[0] == '/') { in PHAR_FUNC()
954 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry + 1, entry_len - 1))) { in PHAR_FUNC()
957 efree(entry); in PHAR_FUNC()
962 if (NULL != (etemp = zend_hash_str_find_ptr(&(phar->manifest), entry, entry_len))) { in PHAR_FUNC()
967 efree(entry); in PHAR_FUNC()