Home
last modified time | relevance | path

Searched refs:alias_len (Results 1 – 8 of 8) sorted by relevance

/php-src/ext/phar/
H A Dphar_internal.h253 uint32_t alias_len; member
376 static inline bool phar_validate_alias(const char *alias, size_t alias_len) /* {{{ */ in phar_validate_alias() argument
378 …return !(memchr(alias, '/', alias_len) || memchr(alias, '\\', alias_len) || memchr(alias, ':', ali… in phar_validate_alias()
379 …memchr(alias, ';', alias_len) || memchr(alias, '\n', alias_len) || memchr(alias, '\r', alias_len)); in phar_validate_alias()
409 zend_result phar_open_from_filename(char *fname, size_t fname_len, char *alias, size_t alias_len, u…
412 zend_result phar_open_executed_filename(char *alias, size_t alias_len, char **error);
413 zend_result phar_free_alias(phar_archive_data *phar, char *alias, size_t alias_len);
414 …rchive_data **archive, char *fname, size_t fname_len, char *alias, size_t alias_len, char **error);
449 zend_result phar_open_or_create_tar(char *fname, size_t fname_len, char *alias, size_t alias_len, i…
453 int phar_parse_zipfile(php_stream *fp, char *fname, size_t fname_len, char *alias, size_t alias_len
[all …]
H A Dutil.c1016 if (alias && alias_len) { in phar_get_archive()
1018 …har)->is_temporary_alias && (alias_len != PHAR_G(last_phar)->alias_len || memcmp(PHAR_G(last_phar)… in phar_get_archive()
1032 PHAR_G(last_alias_len) = alias_len; in phar_get_archive()
1038 …if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alia… in phar_get_archive()
1044 if (alias && alias_len) { in phar_get_archive()
1066 PHAR_G(last_alias_len) = alias_len; in phar_get_archive()
1085 if (alias && alias_len) { in phar_get_archive()
1086 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive()
1104 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1116 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive()
[all …]
H A Dphar.c1057 if (alias && alias_len && (alias_len != tmp_len || strncmp(alias, buffer, tmp_len))) in phar_parse_pharfile()
1073 alias_len = tmp_len; in phar_parse_pharfile()
1077 } else if (!alias_len || !alias) { in phar_parse_pharfile()
1080 alias_len = 0; in phar_parse_pharfile()
1082 } else if (alias_len) { in phar_parse_pharfile()
1253 mydata->alias_len = alias ? alias_len : fname_len; in phar_parse_pharfile()
1486 alias_len = 0; in phar_create_or_parse_filename()
1510 mydata->alias_len = alias ? alias_len : fname_len; in phar_create_or_parse_filename()
1513 if (alias_len && alias) { in phar_create_or_parse_filename()
2856 phar->alias_len = 0; in phar_flush_ex()
[all …]
H A Dtar.c565 myphar->alias_len = size; in phar_parse_tarfile()
664 if (SUCCESS != phar_free_alias(fd_ptr, actual_alias, myphar->alias_len)) { in phar_parse_tarfile()
677 if (alias_len) { in phar_parse_tarfile()
679 if (SUCCESS != phar_free_alias(fd_ptr, alias, alias_len)) { in phar_parse_tarfile()
687 zend_hash_str_add_ptr(&(PHAR_G(phar_alias_map)), alias, alias_len, myphar); in phar_parse_tarfile()
688 myphar->alias = pestrndup(alias, alias_len, myphar->is_persistent); in phar_parse_tarfile()
689 myphar->alias_len = alias_len; in phar_parse_tarfile()
692 myphar->alias_len = fname_len; in phar_parse_tarfile()
997 if (!phar->is_temporary_alias && phar->alias_len) { in phar_tar_flush()
1006 if (phar->alias_len != php_stream_write(entry.fp, phar->alias, phar->alias_len)) { in phar_tar_flush()
[all …]
H A Dzip.c651 mydata->alias_len = entry.uncompressed_filesize; in phar_parse_zipfile()
762 if (!phar_validate_alias(actual_alias, mydata->alias_len)) { in phar_parse_zipfile()
794 if (alias_len) { in phar_parse_zipfile()
796 if (SUCCESS != phar_free_alias(fd_ptr, alias, alias_len)) { 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()
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()
[all …]
H A Dphar_object.c554 size_t alias_len = 0, f404_len = 0, free_pathinfo = 0; in PHP_METHOD() local
965 size_t alias_len = 0; in PHP_METHOD() local
986 size_t fname_len, alias_len = 0; in PHP_METHOD() local
1118 size_t fname_len, alias_len = 0; in PHP_METHOD() local
2169 phar->alias_len = 0; in phar_rename_archive()
2172 phar->alias_len = strlen(newpath); in phar_rename_archive()
2188 phar->alias_len = 0; in phar_rename_archive()
2748 …archive->alias_len && NULL != (fd_ptr = zend_hash_str_find_ptr(&(PHAR_G(phar_alias_map)), phar_obj… in PHP_METHOD()
2754 oldalias_len = phar_obj->archive->alias_len; in PHP_METHOD()
2758 phar_obj->archive->alias_len = ZSTR_LEN(new_alias); in PHP_METHOD()
[all …]
H A Dgdbhelp28 ____print_str $temp.alias $temp.alias_len
/php-src/ext/intl/uchar/
H A Duchar.c349 size_t alias_len; in IC_METHOD() local
352 Z_PARAM_STRING(alias, alias_len) in IC_METHOD()

Completed in 40 milliseconds