Lines Matching refs:alias_len
229 int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alias, size_t alias_len… in phar_parse_zipfile() argument
651 mydata->alias_len = entry.uncompressed_filesize; in phar_parse_zipfile()
762 if (!phar_validate_alias(actual_alias, mydata->alias_len)) { in phar_parse_zipfile()
773 …!= (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), actual_alias, mydata->alias_len))) { in phar_parse_zipfile()
774 if (SUCCESS != phar_free_alias(fd_ptr, actual_alias, mydata->alias_len)) { in phar_parse_zipfile()
784 …mydata->alias = entry.is_persistent ? pestrndup(actual_alias, mydata->alias_len, 1) : actual_alias; in phar_parse_zipfile()
790 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), mydata->alias, mydata->alias_len, mydata); in phar_parse_zipfile()
794 if (alias_len) { in phar_parse_zipfile()
795 if (NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len))) { in phar_parse_zipfile()
796 if (SUCCESS != phar_free_alias(fd_ptr, alias, alias_len)) { in phar_parse_zipfile()
805 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, mydata); in phar_parse_zipfile()
806 mydata->alias = pestrndup(alias, alias_len, mydata->is_persistent); in phar_parse_zipfile()
807 mydata->alias_len = alias_len; in phar_parse_zipfile()
810 mydata->alias_len = fname_len; in phar_parse_zipfile()
827 int phar_open_or_create_zip(char *fname, size_t fname_len, char *alias, size_t alias_len, int is_da… in phar_open_or_create_zip() argument
830 …int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &pha… in phar_open_or_create_zip()
1287 if (!phar->is_temporary_alias && phar->alias_len) { in phar_zip_flush()
1293 if (phar->alias_len != php_stream_write(entry.fp, phar->alias, phar->alias_len)) { in phar_zip_flush()
1300 entry.uncompressed_filesize = entry.compressed_filesize = phar->alias_len; in phar_zip_flush()
1310 if (phar->alias_len) { in phar_zip_flush()
1311 …if (FAILURE == phar_get_archive(&phar, phar->fname, phar->fname_len, phar->alias, phar->alias_len,… in phar_zip_flush()