Lines Matching refs:alias_len

534 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int …  argument
548 if (SUCCESS == phar_get_archive(&phar, unixfname, fname_len, alias, alias_len, error)
555 if (SUCCESS == phar_get_archive(&phar, fname, fname_len, alias, alias_len, error)
666 …e_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, zend_long halt_… argument
998 if (alias && alias_len && (alias_len != (int)tmp_len || strncmp(alias, buffer, tmp_len)))
1014 alias_len = tmp_len;
1018 } else if (!alias_len || !alias) {
1021 alias_len = 0;
1023 } else if (alias_len) {
1208 pestrndup(alias, alias_len, mydata->is_persistent) :
1210 mydata->alias_len = alias ? alias_len : fname_len;
1222 if (!phar_validate_alias(mydata->alias, mydata->alias_len)) {
1228 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) {
1229 if (SUCCESS != phar_free_alias(fd_ptr, alias, alias_len)) {
1236 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, mydata);
1255 int phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_dat… argument
1285 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, test, &my_error) =…
1320 …return phar_open_or_create_zip(fname, fname_len, alias, alias_len, is_data, options, pphar, error);
1325 …return phar_open_or_create_tar(fname, fname_len, alias, alias_len, is_data, options, pphar, error);
1328 …return phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, pphar, …
1332 int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_da… argument
1355 …if (phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error) == S…
1430 alias_len = 0;
1437 …if (alias && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len)…
1438 if (SUCCESS != phar_free_alias(fd_ptr, alias, alias_len)) {
1453 mydata->alias = alias ? estrndup(alias, alias_len) : estrndup(mydata->fname, fname_len);
1454 mydata->alias_len = alias ? alias_len : fname_len;
1457 if (alias_len && alias) {
1458 if (NULL == zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, mydata)) {
1486 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, ph… argument
1500 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, is_data, options, pphar, error) == S…
1528 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, options, pphar, is_data, error);
1572 static int phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len argument
1711 return phar_parse_zipfile(fp, fname, fname_len, alias, alias_len, pphar, error);
1717 …return phar_parse_tarfile(fp, fname, fname_len, alias, alias_len, pphar, is_data, compression, err…
1724 …return phar_parse_pharfile(fp, fname, fname_len, alias, alias_len, halt_offset, pphar, compression…
2270 int phar_open_executed_filename(char *alias, int alias_len, char **error) /* {{{ */ argument
2285 …if (phar_open_parsed_phar(fname, fname_len, alias, alias_len, 0, REPORT_ERRORS, NULL, 0) == SUCCES…
2324 ret = phar_open_from_fp(fp, fname, fname_len, alias, alias_len, REPORT_ERRORS, NULL, 0, error);
2856 restore_alias_len = phar->alias_len;
2858 phar->alias_len = 0;
2861 …manifest_len = offset + phar->alias_len + sizeof(manifest) + (main_metadata_str.s ? ZSTR_LEN(main_…
2878 phar_set_32(manifest+14, phar->alias_len);
2882 || (size_t)phar->alias_len != php_stream_write(newfile, phar->alias, phar->alias_len)) {
2889 phar->alias_len = restore_alias_len;
2898 phar->alias_len = restore_alias_len;
2910 phar->alias_len = restore_alias_len;