Home
last modified time | relevance | path

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

/PHP-5.4/ext/phar/
H A Dphar_internal.h311 int alias_len; member
610 static inline int phar_validate_alias(const char *alias, int alias_len) /* {{{ */ in phar_validate_alias() argument
612 …return !(memchr(alias, '/', alias_len) || memchr(alias, '\\', alias_len) || memchr(alias, ':', ali… in phar_validate_alias()
613 …memchr(alias, ';', alias_len) || memchr(alias, '\n', alias_len) || memchr(alias, '\r', alias_len)); in phar_validate_alias()
642 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, ph…
645 int phar_open_executed_filename(char *alias, int alias_len, char **error TSRMLS_DC);
646 int phar_free_alias(phar_archive_data *phar, char *alias, int alias_len TSRMLS_DC);
647 …ar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TS…
648 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int …
678 int phar_open_or_create_tar(char *fname, int fname_len, char *alias, int alias_len, int is_data, in…
[all …]
H A Dutil.c1228 if (alias && alias_len) { in phar_get_archive()
1230 …har)->is_temporary_alias && (alias_len != PHAR_G(last_phar)->alias_len || memcmp(PHAR_G(last_phar)… in phar_get_archive()
1244 PHAR_G(last_alias_len) = alias_len; in phar_get_archive()
1250 …if (alias && alias_len && PHAR_G(last_phar) && alias_len == PHAR_G(last_alias_len) && !memcmp(alia… in phar_get_archive()
1256 if (alias && alias_len) { in phar_get_archive()
1279 PHAR_G(last_alias_len) = alias_len; in phar_get_archive()
1299 if (alias && alias_len) { in phar_get_archive()
1300 …if (!fd->is_temporary_alias && (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len))… in phar_get_archive()
1318 PHAR_G(last_alias_len) = fd->alias_len; in phar_get_archive()
1330 if (alias_len != fd->alias_len || memcmp(fd->alias, alias, alias_len)) { in phar_get_archive()
[all …]
H A Dphar.c983 if (alias && alias_len && (alias_len != (int)tmp_len || strncmp(alias, buffer, tmp_len)))
1000 alias_len = tmp_len;
1004 } else if (!alias_len || !alias) {
1007 alias_len = 0;
1009 } else if (alias_len) {
1196 mydata->alias_len = alias ? alias_len : fname_len;
1416 alias_len = 0;
1440 mydata->alias_len = alias ? alias_len : fname_len;
1443 if (alias_len && alias) {
2932 phar->alias_len = 0;
[all …]
H A Dtar.c535 myphar->alias_len = size; in phar_parse_tarfile()
628 if (SUCCESS != phar_free_alias(*fd_ptr, actual_alias, myphar->alias_len TSRMLS_CC)) { in phar_parse_tarfile()
641 if (alias_len) { in phar_parse_tarfile()
642 …if (SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (void **)&fd_ptr)… in phar_parse_tarfile()
643 if (SUCCESS != phar_free_alias(*fd_ptr, alias, alias_len TSRMLS_CC)) { in phar_parse_tarfile()
652 myphar->alias = pestrndup(alias, alias_len, myphar->is_persistent); in phar_parse_tarfile()
653 myphar->alias_len = alias_len; in phar_parse_tarfile()
656 myphar->alias_len = fname_len; in phar_parse_tarfile()
951 if (!phar->is_temporary_alias && phar->alias_len) { in phar_tar_flush()
959 if (phar->alias_len != (int)php_stream_write(entry.fp, phar->alias, phar->alias_len)) { in phar_tar_flush()
[all …]
H A Dzip.c594 mydata->alias_len = entry.uncompressed_filesize; in phar_parse_zipfile()
665 if (!phar_validate_alias(actual_alias, mydata->alias_len)) { in phar_parse_zipfile()
697 if (alias_len) { in phar_parse_zipfile()
699 if (SUCCESS != phar_free_alias(*fd_ptr, alias, alias_len TSRMLS_CC)) { in phar_parse_zipfile()
709 mydata->alias = pestrndup(alias, alias_len, mydata->is_persistent); in phar_parse_zipfile()
710 mydata->alias_len = alias_len; in phar_parse_zipfile()
713 mydata->alias_len = fname_len; in phar_parse_zipfile()
1202 if (!phar->is_temporary_alias && phar->alias_len) { in phar_zip_flush()
1208 if (phar->alias_len != (int)php_stream_write(entry.fp, phar->alias, phar->alias_len)) { in phar_zip_flush()
1215 entry.uncompressed_filesize = entry.compressed_filesize = phar->alias_len; in phar_zip_flush()
[all …]
H A Dphar_object.c996 int alias_len = 0; local
1018 int fname_len, alias_len = 0; local
2230 phar->alias_len = 0;
2233 phar->alias_len = strlen(newpath);
2248 phar->alias_len = 0;
2784 int alias_len, oldalias_len, old_temp, readd = 0; local
2810 …if (alias_len == phar_obj->arc.archive->alias_len && memcmp(phar_obj->arc.archive->alias, alias, a…
2813 …if (alias_len && SUCCESS == zend_hash_find(&(PHAR_GLOBALS->phar_alias_map), alias, alias_len, (voi…
2823 if (!phar_validate_alias(alias, alias_len)) {
2842 if (alias_len) {
[all …]
H A Dgdbhelp28 ____print_str $temp.alias $temp.alias_len
/PHP-5.4/Zend/
H A Dzend.h455 unsigned int alias_len; member
H A Dzend_API.c3928 if (alias->alias_len == len && in zend_find_alias_name()
3929 !strncasecmp(name, alias->alias, alias->alias_len)) { in zend_find_alias_name()
H A Dzend_compile.c3813 lcname = zend_str_tolower_dup(alias->alias, alias->alias_len); in zend_traits_copy_functions()
3814 …zend_add_trait_method(ce, alias->alias, lcname, alias->alias_len+1, &fn_copy, overriden TSRMLS_CC); in zend_traits_copy_functions()
4318 trait_alias->alias_len = Z_STRLEN(alias->u.constant); in zend_add_trait_alias()
/PHP-5.4/ext/reflection/
H A Dphp_reflection.c4467 …add_assoc_stringl_ex(return_value, ce->trait_aliases[i]->alias, ce->trait_aliases[i]->alias_len + … in ZEND_METHOD()

Completed in 101 milliseconds