Lines Matching refs:fname_len

276 		|| zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) {  in phar_archive_delref()
299 if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) { in phar_archive_delref()
532 int phar_open_parsed_phar(char *fname, size_t fname_len, char *alias, size_t alias_len, zend_bool i… argument
543 unixfname = estrndup(fname, fname_len);
544 phar_unixify_path_separators(unixfname, fname_len);
546 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error)
547 && ((alias && fname_len == phar->fname_len
548 && !strncmp(unixfname, phar->fname, fname_len)) || !alias)
553 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error)
554 && ((alias && fname_len == phar->fname_len
555 && !strncmp(fname, phar->fname, fname_len)) || !alias)
664 static int phar_parse_pharfile(php_stream *fp, char *fname, size_t fname_len, char *alias, size_t a… argument
1061 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent);
1063 phar_unixify_path_separators(mydata->fname, fname_len);
1065 mydata->fname_len = fname_len;
1204 mydata->ext = memchr(endbuffer, '.', (mydata->fname + fname_len) - endbuffer);
1206 mydata->ext = memchr(endbuffer + 1, '.', (mydata->fname + fname_len) - endbuffer - 1);
1209 mydata->ext_len = (mydata->fname + mydata->fname_len) - mydata->ext;
1215 pestrndup(mydata->fname, fname_len, mydata->is_persistent);
1216 mydata->alias_len = alias ? alias_len : fname_len;
1254 str = zend_string_init_interned(mydata->fname, fname_len, 1);
1256 str = zend_string_init(mydata->fname, fname_len, 0);
1273 int phar_open_or_create_filename(char *fname, size_t fname_len, char *alias, size_t alias_len, zend… argument
1287 if (phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 0, 1) == SUCCESS) {
1292 if (FAILURE == phar_detect_phar_fname_ext(fname, fname_len, &ext_str, &ext_len, !is_data, 1, 1)) {
1303 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, test, &my_error) =…
1338 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error);
1343 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error);
1346 …return phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, …
1350 int phar_create_or_parse_filename(char *fname, size_t fname_len, char *alias, size_t alias_len, zen… argument
1369 fname_len = ZSTR_LEN(actual);
1373 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error) == S…
1410 fname_len = strlen(mydata->fname);
1412 phar_unixify_path_separators(mydata->fname, fname_len);
1417 mydata->ext = memchr(p, '.', (mydata->fname + fname_len) - p);
1419 mydata->ext = memchr(p + 1, '.', (mydata->fname + fname_len) - p - 1);
1422 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext;
1436 mydata->fname_len = fname_len;
1444 zend_hash_str_add_ptr(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len, mydata);
1461 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len);
1471 mydata->alias = alias ? estrndup(alias, alias_len) : estrndup(mydata->fname, fname_len);
1472 mydata->alias_len = alias ? alias_len : fname_len;
1483 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len);
1504 int phar_open_from_filename(char *fname, size_t fname_len, char *alias, size_t alias_len, uint32_t … argument
1518 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error) == S…
1543 fname_len = ZSTR_LEN(actual);
1546 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error);
1590 static int phar_open_from_fp(php_stream* fp, char *fname, size_t fname_len, char *alias, size_t ali… argument
1729 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error);
1735 …return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, err…
1742 …return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression…
2288 size_t fname_len; local
2297 fname_len = strlen(fname);
2299 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, 0, REPORT_ERRORS, NULL, 0) == SUCCES…
2335 fname_len = ZSTR_LEN(actual);
2338 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error);