Lines Matching refs:fname_len

281 		|| zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) {  in phar_archive_delref()
302 if (zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) { in phar_archive_delref()
531 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int … argument
542 unixfname = estrndup(fname, fname_len);
543 phar_unixify_path_separators(unixfname, fname_len);
545 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error TSRMLS_CC)
546 && ((alias && fname_len == phar->fname_len
547 && !strncmp(unixfname, phar->fname, fname_len)) || !alias)
552 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error TSRMLS_CC)
553 && ((alias && fname_len == phar->fname_len
554 && !strncmp(fname, phar->fname, fname_len)) || !alias)
651 static int phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_l… argument
1047 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent);
1049 phar_unixify_path_separators(mydata->fname, fname_len);
1051 mydata->fname_len = fname_len;
1184 mydata->ext = memchr(endbuffer, '.', (mydata->fname + fname_len) - endbuffer);
1186 mydata->ext = memchr(endbuffer + 1, '.', (mydata->fname + fname_len) - endbuffer - 1);
1189 mydata->ext_len = (mydata->fname + mydata->fname_len) - mydata->ext;
1195 pestrndup(mydata->fname, fname_len, mydata->is_persistent);
1196 mydata->alias_len = alias ? alias_len : fname_len;
1227 …zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(ph…
1241 int phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_dat… argument
1255 …if (phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 0, 1 TSRMLS_CC) == …
1260 …if (FAILURE == phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 1, 1 TSR…
1271 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, test, &my_error TS…
1306 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1311 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error …
1314 …return phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, …
1318 int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_da… argument
1341 fname_len = strlen(actual);
1345 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TSRML…
1378 fname_len = strlen(mydata->fname);
1380 phar_unixify_path_separators(mydata->fname, fname_len);
1385 mydata->ext = memchr(p, '.', (mydata->fname + fname_len) - p);
1387 mydata->ext = memchr(p + 1, '.', (mydata->fname + fname_len) - p - 1);
1390 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext;
1404 mydata->fname_len = fname_len;
1412 …zend_hash_add(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len, (void*)&mydata, sizeof(ph…
1429 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len);
1439 mydata->alias = alias ? estrndup(alias, alias_len) : estrndup(mydata->fname, fname_len);
1440 mydata->alias_len = alias ? alias_len : fname_len;
1451 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len);
1472 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, ph… argument
1486 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error TSRML…
1516 fname_len = strlen(actual);
1519 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error TS…
1563 static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len… argument
1702 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error TSRMLS_CC);
1708 …return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, err…
1715 …return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression…
2331 int fname_len; local
2340 fname_len = strlen(fname);
2342 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, 0, REPORT_ERRORS, NULL, 0 TSRMLS_CC)…
2389 fname_len = strlen(actual);
2392 …ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error TSRM…
3443 int fname_len; local
3446 fname_len = strlen(fname);
3448 if (fname_len > 7 && !strncasecmp(fname, "phar://", 7)) {
3449 …if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 1, 0 TSRML…