Home
last modified time | relevance | path

Searched refs:filename_len (Results 1 – 25 of 37) sorted by relevance

12

/PHP-8.1/ext/phar/
H A Dtar.c375 if (entry.filename_len == UINT_MAX || entry.filename_len == 0) { in phar_parse_tarfile()
386 if (read != entry.filename_len) { in phar_parse_tarfile()
395 entry.filename[entry.filename_len] = '\0'; in phar_parse_tarfile()
442 entry.filename_len = i+j; in phar_parse_tarfile()
444 if (name[entry.filename_len - 1] == '/') { in phar_parse_tarfile()
446 entry.filename_len--; in phar_parse_tarfile()
458 entry.filename_len = i; in phar_parse_tarfile()
464 entry.filename_len--; in phar_parse_tarfile()
738 if (entry->filename_len > 100) { in phar_tar_writeheaders_int()
740 if (entry->filename_len > 256) { in phar_tar_writeheaders_int()
[all …]
H A Dfunc_interceptors.c27 size_t filename_len; in PHAR_FUNC() local
63 entry_len = filename_len; in PHAR_FUNC()
95 size_t filename_len; in PHAR_FUNC() local
141 entry_len = filename_len; in PHAR_FUNC()
235 size_t filename_len; in PHAR_FUNC() local
272 entry_len = filename_len; in PHAR_FUNC()
373 entry_len = filename_len; in PHAR_FUNC()
769 size_t filename_len; \
839 size_t filename_len; in PharFileFunction() local
870 entry_len = filename_len; in PharFileFunction()
[all …]
H A Dzip.c396 if (!PHAR_GET_16(zipentry.filename_len)) { in phar_parse_zipfile()
400 entry.filename_len = PHAR_GET_16(zipentry.filename_len); in phar_parse_zipfile()
403 if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) { in phar_parse_zipfile()
412 if(entry.filename_len > 1) { in phar_parse_zipfile()
413 entry.filename_len--; in phar_parse_zipfile()
875 PHAR_SET_16(central.filename_len, entry->filename_len + (entry->is_dir ? 1 : 0)); in phar_zip_changed_apply_int()
876 PHAR_SET_16(local.filename_len, entry->filename_len + (entry->is_dir ? 1 : 0)); in phar_zip_changed_apply_int()
1015 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1025 if (entry->filename_len != php_stream_write(p->centralfp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
1035 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int()
[all …]
H A Dpharzip.h30 char filename_len[2]; /* file name length 2 bytes */ member
160 char filename_len[2]; /* file name length 2 bytes */ member
H A Dphp_phar.h35 …R_API int phar_resolve_alias(char *alias, size_t alias_len, char **filename, size_t *filename_len);
H A Dphar.c1132 PHAR_GET_32(buffer, entry.filename_len); in phar_parse_pharfile()
1134 if (entry.filename_len == 0) { in phar_parse_pharfile()
1154 buffer += entry.filename_len; in phar_parse_pharfile()
1174 entry.filename_len--; in phar_parse_pharfile()
1968 if (!filename_len || filename_len == 1) { in phar_detect_phar_fname_ext()
1974 pos = memchr(filename, '/', filename_len); in phar_detect_phar_fname_ext()
2256 filename_len -= 7; in phar_split_fname()
2262 if (memchr(filename, '\\', filename_len)) { in phar_split_fname()
2294 *entry_len = filename_len - *arch_len; in phar_split_fname()
2418 PHAR_ZIP_16(local.filename_len) + in phar_postprocess_file()
[all …]
H A Dphar_internal.h240 uint32_t filename_len; member
511 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
518 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
548 void phar_add_virtual_dirs(phar_archive_data *phar, char *filename, size_t filename_len);
549 int phar_mount_entry(phar_archive_data *phar, char *filename, size_t filename_len, char *path, size…
601 int phar_detect_phar_fname_ext(const char *filename, size_t filename_len, const char **ext_str, siz…
602 int phar_split_fname(const char *filename, size_t filename_len, char **arch, size_t *arch_len, char…
H A Dutil.c189 entry.filename_len = path_len; in phar_mount_entry()
191 entry.tmp = estrndup(filename, filename_len); in phar_mount_entry()
195 entry.tmp = estrndup(filename, filename_len); in phar_mount_entry()
287 try_len = filename_len; in phar_find_in_include_path()
310 ret = php_resolve_path(filename, filename_len, path); in phar_find_in_include_path()
550 etemp.filename_len = path_len; in phar_get_or_create_entry_data()
571 etemp.filename_len--; /* strip trailing / */ in phar_get_or_create_entry_data()
924 *filename_len = fd_ptr->fname_len; in phar_resolve_alias()
1284 entry->filename_len = path_len; in phar_get_entry_info_dir()
1984 filename_len = s - filename; in phar_add_virtual_dirs()
[all …]
H A Ddirstream.c496 entry.filename_len = ZSTR_LEN(resource->path) - 1; in phar_wrapper_mkdir()
505 …if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&ent… in phar_wrapper_mkdir()
516 zend_hash_str_del(&phar->manifest, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
521 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
H A Dphar_object.c3457 newentry.filename_len = newfile_len; in PHP_METHOD()
3579 if (filename_len >= sizeof(".phar")-1) { in phar_add_file()
3589 if (memchr(filename, '\\', filename_len)) { in phar_add_file()
3591 memcpy(filename, save_filename, filename_len); in phar_add_file()
3592 filename[filename_len] = '\0'; in phar_add_file()
4094 size_t filename_len; in phar_extract_file() local
4111 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file()
4122 filename_len = new_state.cwd_length - 1; in phar_extract_file()
4132 } while (cnt++ < filename_len); in phar_extract_file()
4142 if (entry->filename_len > 50) { in phar_extract_file()
[all …]
H A Dstream.c262 entry->filename_len = 0; in phar_wrapper_open_url()
322 …if ((idata->phar->is_tar || idata->phar->is_zip) && idata->internal_file->filename_len == sizeof("… in phar_wrapper_open_url()
864 entry->filename_len = strlen(entry->filename); in phar_wrapper_rename()
904 entry->filename_len = ZSTR_LEN(new_str_key); in phar_wrapper_rename()
/PHP-8.1/ext/standard/
H A Dfilestat.c343 size_t filename_len; in php_do_chgrp() local
353 Z_PARAM_PATH(filename, filename_len) in php_do_chgrp()
469 size_t filename_len; in php_do_chown() local
479 Z_PARAM_PATH(filename, filename_len) in php_do_chown()
567 size_t filename_len; in PHP_FUNCTION() local
574 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
613 size_t filename_len; in PHP_FUNCTION() local
623 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
629 if (!filename_len) { in PHP_FUNCTION()
723 size_t filename_len = 0; in PHP_FUNCTION() local
[all …]
H A Ddl.c45 size_t filename_len; in PHP_FUNCTION() local
48 Z_PARAM_STRING(filename, filename_len) in PHP_FUNCTION()
56 if (filename_len >= MAXPATHLEN) { in PHP_FUNCTION()
H A Dphp_filestat.h43 …PI void php_clear_stat_cache(bool clear_realpath_cache, const char *filename, size_t filename_len);
H A Dfile.c389 size_t filename_len; in PHP_FUNCTION() local
403 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
533 size_t filename_len; in PHP_FUNCTION() local
590 size_t filename_len; in PHP_FUNCTION() local
731 size_t filename_len; in PHP_FUNCTION() local
872 size_t filename_len, mode_len; in PHP_FUNCTION() local
1326 size_t filename_len; in PHP_FUNCTION() local
1442 size_t filename_len; in PHP_FUNCTION() local
2310 size_t filename_len; in PHP_FUNCTION() local
2446 size_t pattern_len, filename_len; in PHP_FUNCTION() local
[all …]
/PHP-8.1/main/
H A Dfopen_wrappers.h38 PHPAPI zend_string *php_resolve_path(const char *filename, size_t filename_len, const char *path);
/PHP-8.1/ext/zip/
H A Dphp_zip.h57 int filename_len; member
/PHP-8.1/sapi/apache2handler/
H A Dphp_functions.c77 size_t filename_len; in PHP_FUNCTION() local
80 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
124 size_t filename_len; in PHP_FUNCTION() local
126 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
/PHP-8.1/ext/phar/tests/zip/files/
H A Dcorrupt2.php.inc12 $a->addFile('hii', null, 'hii', null, null, 'filename_len', 'filename_len');
/PHP-8.1/ext/phar/tests/zip/
H A Dbzip2.phpt33 $a->addFile('hii', null, 'hii', null, null, 'filename_len', 'filename_len');
/PHP-8.1/ext/com_dotnet/
H A Dcom_persist.c365 size_t filename_len; in CPH_METHOD() local
371 &filename, &filename_len, &remember)) { in CPH_METHOD()
426 size_t filename_len; in CPH_METHOD() local
432 &filename, &filename_len, &flags)) { in CPH_METHOD()
/PHP-8.1/ext/ftp/
H A Dftp.h140 int ftp_chmod(ftpbuf_t *ftp, const int mode, const char *filename, const int filename_len);
/PHP-8.1/ext/zlib/
H A Dzlib.c611 size_t filename_len; in PHP_FUNCTION() local
618 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "p|l", &filename, &filename_len, &use_includ… in PHP_FUNCTION()
652 size_t filename_len, mode_len; in PHP_FUNCTION() local
657 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ps|l", &filename, &filename_len, &mode, &mode_len, &us… in PHP_FUNCTION()
678 size_t filename_len; in PHP_FUNCTION() local
684 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|l", &filename, &filename_len, &use_include_path) == … in PHP_FUNCTION()
/PHP-8.1/ext/xsl/
H A Dxsltprocessor.c814 size_t filename_len; in PHP_METHOD() local
816 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p!", &filename, &filename_len) == FAILURE) { in PHP_METHOD()
825 intern->profiling = estrndup(filename, filename_len); in PHP_METHOD()
/PHP-8.1/ext/pdo_pgsql/
H A Dpgsql_driver.c708 size_t table_name_len, filename_len, pg_delim_len = 0, pg_null_as_len = 0, pg_fields_len; in PHP_METHOD() local
715 &table_name, &table_name_len, &filename, &filename_len, in PHP_METHOD()
806 size_t table_name_len, pg_delim_len = 0, pg_null_as_len = 0, pg_fields_len, filename_len; in PHP_METHOD() local
815 &table_name, &table_name_len, &filename, &filename_len, in PHP_METHOD()

Completed in 138 milliseconds

12