Lines Matching refs:fname_len
348 static void phar_do_404(phar_archive_data *phar, char *fname, int fname_len, char *f404, int f404_l… in phar_do_404() argument
376 static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char … in phar_postprocess_ru_web() argument
383 zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, (void **) &pphar); in phar_postprocess_ru_web()
386 zend_hash_find(&cached_phars, fname, fname_len, (void **) &pphar); in phar_postprocess_ru_web()
444 int fname_len, arch_len, entry_len; in PHP_METHOD() local
452 fname_len = strlen(fname); in PHP_METHOD()
454 …if (fname_len > 7 && !memcmp(fname, "phar://", 7) && SUCCESS == phar_split_fname(fname, fname_len,… in PHP_METHOD()
478 int fname_len, arch_len, entry_len, path_len, actual_len; in PHP_METHOD() local
486 fname_len = strlen(fname); in PHP_METHOD()
489 phar_unixify_path_separators(fname, fname_len); in PHP_METHOD()
492 …if (fname_len > 7 && !memcmp(fname, "phar://", 7) && SUCCESS == phar_split_fname(fname, fname_len,… in PHP_METHOD()
539 …ts && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, (void **)&pphar… in PHP_METHOD()
541 …} else if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_find(&cached_phars, fname, fname_len, (… in PHP_METHOD()
571 int fname_len, entry_len, code, index_php_len = 0, not_cgi; local
581 fname_len = strlen(fname);
597 fname = estrndup(fname, fname_len);
598 phar_unixify_path_separators(fname, fname_len);
600 basename = zend_memrchr(fname, '/', fname_len);
661 pt = estrndup(testit, (pt - testit) + (fname_len - (basename - fname)));
673 entry_len -= (pt - path_info) + (fname_len - (basename - fname));
674 entry = estrndup(pt + (fname_len - (basename - fname)), entry_len);
676 pt = estrndup(path_info, (pt - path_info) + (fname_len - (basename - fname)));
772 phar_postprocess_ru_web(fname, fname_len, &entry, &entry_len, &ru, &ru_len TSRMLS_CC);
791 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, NULL TSRMLS_CC) ||
793 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len TSRMLS_CC);
809 tmp = strstr(path_info, basename) + fname_len;
837 if (FAILURE == phar_get_archive(&phar, fname, fname_len, NULL, 0, NULL TSRMLS_CC) ||
839 phar_do_404(phar, fname, fname_len, f404, f404_len, entry, entry_len TSRMLS_CC);
1018 int fname_len, alias_len = 0; local
1020 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s!", &fname, &fname_len, &alias, &alias_le…
1026 …RETVAL_BOOL(phar_open_from_filename(fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, &erro…
1096 int fname_len, ext_len, is_executable; local
1099 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &fname, &fname_len, &executable) == FA…
1104 …RETVAL_BOOL(phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, is_executable, 2, 1 T…
1158 int fname_len, alias_len = 0, arch_len, entry_len, is_data;
1174 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ls!l", &fname, &fname_len, &flags, &alias,…
1178 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ls!", &fname, &fname_len, &flags, &alias, …
1189 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, !is_data, …
1196 fname_len = arch_len;
1199 arch = estrndup(fname, fname_len);
1200 arch_len = fname_len;
1206 …if (phar_open_or_create_filename(fname, fname_len, alias, alias_len, is_data, REPORT_ERRORS, &phar…
1261 fname_len = spprintf(&fname, 0, "phar://%s%s", phar_data->fname, entry);
1264 fname_len = spprintf(&fname, 0, "phar://%s", phar_data->fname);
1268 ZVAL_STRINGL(&arg1, fname, fname_len, 0);
1343 int fname_len, zname_len, arch_len, entry_len; local
1346 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &fname, &fname_len) == FAILURE) {
1350 if (!fname_len) {
1355 …if (FAILURE == phar_open_from_filename(fname, fname_len, NULL, 0, REPORT_ERRORS, &phar, &error TSR…
1369 if (arch_len == fname_len && !memcmp(arch, fname, arch_len)) {
1389 fname = estrndup(phar->fname, phar->fname_len);
1442 uint str_key_len, base_len = p_obj->l, fname_len; local
1539 fname_len = spprintf(&fname, 0, "%s%c%s", test, DEFAULT_SLASH, intern->u.dir.entry.d_name);
1540 php_stat(fname, fname_len, FS_IS_DIR, &dummy TSRMLS_CC);
1553 fname_len = strlen(fname);
1587 fname_len = strlen(fname);
1599 fname_len = Z_STRLEN_PP(value);
1616 str_key_len = fname_len - base_len;
1744 …_create_entry_data(phar_obj->arc.archive->fname, phar_obj->arc.archive->fname_len, str_key, str_ke…
2168 oldpath = estrndup(phar->fname, phar->fname_len);
2169 oldname = zend_memrchr(phar->fname, '/', phar->fname_len);
2180 phar->fname_len = spprintf(&newpath, 0, "%s%s", basepath, newname);
2182 phar->ext = newpath + phar->fname_len - strlen(ext) - 1;
2186 …if (PHAR_G(manifest_cached) && SUCCESS == zend_hash_find(&cached_phars, newpath, phar->fname_len, …
2192 …if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), newpath, phar->fname_len, (void **)…
2193 …if ((*pphar)->fname_len == phar->fname_len && !memcmp((*pphar)->fname, phar->fname, phar->fname_le…
2221 …if (SUCCESS != phar_detect_phar_fname_ext(newpath, phar->fname_len, (const char **) &(phar->ext), …
2235 …zend_hash_update(&(PHAR_GLOBALS->phar_alias_map), newpath, phar->fname_len, (void*)&phar, sizeof(p…
2241 …if (SUCCESS != phar_detect_phar_fname_ext(newpath, phar->fname_len, (const char **) &(phar->ext), …
2251 …ESS != zend_hash_update(&(PHAR_GLOBALS->phar_fname_map), newpath, phar->fname_len, (void*)&phar, s…
2283 ZVAL_STRINGL(&arg1, phar->fname, phar->fname_len, 0);
2330 phar->fname_len = source->fname_len;
2699 int fname_len; local
2710 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &fname, &fname_len) == FAILURE) {
2718 if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) {
2719 …if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&…
2772 RETURN_STRINGL(phar_obj->arc.archive->fname, phar_obj->arc.archive->fname_len, 1);
3627 int fname_len; local
3632 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &fname, &fname_len) == FAILURE) {
3636 if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) {
3637 …if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&…
3644 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) {
3650 if (zend_hash_exists(&phar_obj->arc.archive->virtual_dirs, fname, (uint) fname_len)) {
3664 int fname_len; local
3669 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &fname, &fname_len) == FAILURE) {
3674 …if (!(entry = phar_get_entry_info_dir(phar_obj->arc.archive, fname, fname_len, 1, &error, 0 TSRMLS…
3677 …if (fname_len == sizeof(".phar/stub.php")-1 && !memcmp(fname, ".phar/stub.php", sizeof(".phar/stub…
3682 …if (fname_len == sizeof(".phar/alias.txt")-1 && !memcmp(fname, ".phar/alias.txt", sizeof(".phar/al…
3687 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) {
3697 fname_len = spprintf(&fname, 0, "phar://%s/%s", phar_obj->arc.archive->fname, fname);
3699 ZVAL_STRINGL(zfname, fname, fname_len, 0);
3720 …if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, filename, filenam…
3773 …if (!(data = phar_get_or_create_entry_data((*pphar)->fname, (*pphar)->fname_len, dirname, dirname_…
3808 int fname_len, cont_len; local
3817 …s_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "sr", &fname, &fname_len, &zresource) == …
3818 …&& zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &fname, &fname_len, &cont_str, &cont_len…
3822 …if (fname_len == sizeof(".phar/stub.php")-1 && !memcmp(fname, ".phar/stub.php", sizeof(".phar/stub…
3827 …if (fname_len == sizeof(".phar/alias.txt")-1 && !memcmp(fname, ".phar/alias.txt", sizeof(".phar/al…
3832 if (fname_len >= sizeof(".phar")-1 && !memcmp(fname, ".phar", sizeof(".phar")-1)) {
3837 phar_add_file(&(phar_obj->arc.archive), fname, fname_len, cont_str, cont_len, zresource TSRMLS_CC);
3847 int fname_len; local
3856 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &fname, &fname_len) == FAILURE) {
3860 if (zend_hash_exists(&phar_obj->arc.archive->manifest, fname, (uint) fname_len)) {
3861 …if (SUCCESS == zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void**)&…
3873 zend_hash_find(&phar_obj->arc.archive->manifest, fname, (uint) fname_len, (void **)&entry);
3922 int fname_len, localname_len = 0; local
3928 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &fname, &fname_len, &localname, &local…
3951 fname_len = localname_len;
3956 phar_add_file(&(phar_obj->arc.archive), fname, fname_len, NULL, 0, zresource TSRMLS_CC);
4542 int fname_len, arch_len, entry_len; local
4548 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &fname, &fname_len) == FAILURE) {
4559 …if (fname_len < 7 || memcmp(fname, "phar://", 7) || phar_split_fname(fname, fname_len, &arch, &arc…
4593 ZVAL_STRINGL(&arg1, fname, fname_len, 0);