/php-src/ext/phar/ |
H A D | tar.c | 369 if (entry.filename_len == UINT_MAX || entry.filename_len == 0) { in phar_parse_tarfile() 380 if (read != entry.filename_len) { in phar_parse_tarfile() 389 entry.filename[entry.filename_len] = '\0'; in phar_parse_tarfile() 436 entry.filename_len = i+j; in phar_parse_tarfile() 438 if (name[entry.filename_len - 1] == '/') { in phar_parse_tarfile() 440 entry.filename_len--; in phar_parse_tarfile() 452 entry.filename_len = i; in phar_parse_tarfile() 458 entry.filename_len--; in phar_parse_tarfile() 737 if (entry->filename_len > 100) { in phar_tar_writeheaders_int() 739 if (entry->filename_len > 256) { in phar_tar_writeheaders_int() [all …]
|
H A D | zip.c | 430 entry.filename_len = PHAR_GET_16(zipentry.filename_len); in phar_parse_zipfile() 433 if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) { in phar_parse_zipfile() 442 if(entry.filename_len > 1) { in phar_parse_zipfile() 443 entry.filename_len--; in phar_parse_zipfile() 470 if (entry.filename_len != PHAR_GET_16(local.filename_len)) { in phar_parse_zipfile() 477 + entry.filename_len in phar_parse_zipfile() 482 + entry.filename_len in phar_parse_zipfile() 928 PHAR_SET_16(central.filename_len, entry->filename_len + (entry->is_dir ? 1 : 0)); in phar_zip_changed_apply_int() 929 PHAR_SET_16(local.filename_len, entry->filename_len + (entry->is_dir ? 1 : 0)); in phar_zip_changed_apply_int() 1068 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply_int() [all …]
|
H A D | pharzip.h | 30 char filename_len[2]; /* file name length 2 bytes */ member 167 char filename_len[2]; /* file name length 2 bytes */ member
|
H A D | func_interceptors.c | 26 size_t filename_len; in PHP_FUNCTION() local 42 if (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://")) { in PHP_FUNCTION() 59 entry = estrndup(filename, filename_len); in PHP_FUNCTION() 61 entry_len = filename_len; in PHP_FUNCTION() 660 size_t filename_len; \ 730 size_t filename_len; in PharFileFunction() local 743 if (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://")) { in PharFileFunction() 760 entry_len = filename_len; in PharFileFunction() 796 size_t filename_len; in PHP_FUNCTION() local 809 if (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://")) { in PHP_FUNCTION() [all …]
|
H A D | phar.c | 1137 PHAR_GET_32(buffer, entry.filename_len); in phar_parse_pharfile() 1139 if (entry.filename_len == 0) { in phar_parse_pharfile() 1159 buffer += entry.filename_len; in phar_parse_pharfile() 1179 entry.filename_len--; in phar_parse_pharfile() 1973 if (filename_len <= 1) { in phar_detect_phar_fname_ext() 1979 pos = memchr(filename, '/', filename_len); in phar_detect_phar_fname_ext() 2033 if (ZSTR_LEN(str_key) > filename_len) { in phar_detect_phar_fname_ext() 2253 filename_len -= 7; in phar_split_fname() 2291 *entry_len = filename_len - *arch_len; in phar_split_fname() 2407 PHAR_ZIP_16(local.filename_len) + in phar_postprocess_file() [all …]
|
H A D | phar_internal.h | 207 uint32_t filename_len; member 389 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode() 396 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode() 424 void phar_add_virtual_dirs(phar_archive_data *phar, char *filename, size_t filename_len); 425 zend_result phar_mount_entry(phar_archive_data *phar, char *filename, size_t filename_len, char *pa… 473 zend_result phar_detect_phar_fname_ext(const char *filename, size_t filename_len, const char **ext_… 474 zend_result phar_split_fname(const char *filename, size_t filename_len, char **arch, size_t *arch_l…
|
H A D | util.c | 205 is_phar = (filename_len > 7 && !memcmp(filename, "phar://", 7)); in phar_mount_entry() 212 entry.filename_len = path_len; in phar_mount_entry() 214 entry.tmp = estrndup(filename, filename_len); in phar_mount_entry() 218 entry.tmp = estrndup(filename, filename_len); in phar_mount_entry() 676 etemp.filename_len = path_len; in phar_get_or_create_entry_data() 697 etemp.filename_len--; /* strip trailing / */ in phar_get_or_create_entry_data() 1330 entry->filename_len = path_len; in phar_get_entry_info_dir() 2021 while ((s = zend_memrchr(filename, '/', filename_len))) { in phar_add_virtual_dirs() 2022 filename_len = s - filename; in phar_add_virtual_dirs() 2023 if (!filename_len) { in phar_add_virtual_dirs() [all …]
|
H A D | dirstream.c | 444 entry.filename_len = ZSTR_LEN(resource->path) - 1; in phar_wrapper_mkdir() 453 …if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&ent… in phar_wrapper_mkdir() 464 zend_hash_str_del(&phar->manifest, entry.filename, entry.filename_len); in phar_wrapper_mkdir() 469 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len); in phar_wrapper_mkdir()
|
H A D | phar_object.c | 3493 newentry.filename_len = tmp_len; in PHP_METHOD() 3631 size_t filename_len = ZSTR_LEN(file_name); in phar_add_file() local 3634 if (memchr(filename, '\\', filename_len)) { in phar_add_file() 3636 memcpy(filename, save_filename, filename_len); in phar_add_file() 3637 filename[filename_len] = '\0'; in phar_add_file() 4139 size_t filename_len; in phar_extract_file() local 4156 if (EINVAL == errno && entry->filename_len > 50) { in phar_extract_file() 4167 filename_len = new_state.cwd_length - 1; in phar_extract_file() 4177 } while (cnt++ < filename_len); in phar_extract_file() 4187 if (entry->filename_len > 50) { in phar_extract_file() [all …]
|
H A D | stream.c | 271 entry->filename_len = 0; in phar_wrapper_open_url() 331 …if ((idata->phar->is_tar || idata->phar->is_zip) && idata->internal_file->filename_len == sizeof("… in phar_wrapper_open_url() 867 entry->filename_len = strlen(entry->filename); in phar_wrapper_rename() 907 entry->filename_len = ZSTR_LEN(new_str_key); in phar_wrapper_rename()
|
/php-src/ext/standard/ |
H A D | filestat.c | 321 size_t filename_len; in php_do_chgrp() local 331 Z_PARAM_PATH(filename, filename_len) in php_do_chgrp() 459 size_t filename_len; in php_do_chown() local 469 Z_PARAM_PATH(filename, filename_len) in php_do_chown() 557 size_t filename_len; in PHP_FUNCTION() local 564 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION() 603 size_t filename_len; in PHP_FUNCTION() local 613 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION() 619 if (!filename_len) { in PHP_FUNCTION() 713 size_t filename_len = 0; in PHP_FUNCTION() local [all …]
|
H A D | dl.c | 45 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 D | php_filestat.h | 43 …PI void php_clear_stat_cache(bool clear_realpath_cache, const char *filename, size_t filename_len);
|
H A D | file.c | 241 size_t filename_len; in PHP_FUNCTION() local 255 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION() 385 size_t filename_len; in PHP_FUNCTION() local 448 size_t filename_len; in PHP_FUNCTION() local 589 size_t filename_len; in PHP_FUNCTION() local 730 size_t filename_len, mode_len; in PHP_FUNCTION() local 1160 size_t filename_len; in PHP_FUNCTION() local 1276 size_t filename_len; in PHP_FUNCTION() local 2166 size_t filename_len; in PHP_FUNCTION() local 2302 size_t pattern_len, filename_len; in PHP_FUNCTION() local [all …]
|
/php-src/ext/dom/lexbor/lexbor/core/ |
H A D | fs.h | 20 size_t filename_len, void *ctx);
|
/php-src/main/ |
H A D | fopen_wrappers.h | 38 PHPAPI zend_string *php_resolve_path(const char *filename, size_t filename_len, const char *path);
|
/php-src/sapi/apache2handler/ |
H A D | php_functions.c | 76 size_t filename_len; in PHP_FUNCTION() local 79 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION() 123 size_t filename_len; in PHP_FUNCTION() local 125 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
|
/php-src/ext/zip/ |
H A D | php_zip.h | 71 int filename_len; member
|
/php-src/ext/phar/tests/zip/files/ |
H A D | corrupt2.php.inc | 12 $a->addFile('hii', null, 'hii', null, null, 'filename_len', 'filename_len');
|
/php-src/ext/phar/tests/zip/ |
H A D | bzip2.phpt | 33 $a->addFile('hii', null, 'hii', null, null, 'filename_len', 'filename_len');
|
/php-src/ext/com_dotnet/ |
H A D | com_persist.c | 353 size_t filename_len; in CPH_METHOD() local 359 &filename, &filename_len, &remember)) { in CPH_METHOD() 414 size_t filename_len; in CPH_METHOD() local 420 &filename, &filename_len, &flags)) { in CPH_METHOD()
|
/php-src/ext/ftp/ |
H A D | ftp.h | 141 int ftp_chmod(ftpbuf_t *ftp, const int mode, const char *filename, const int filename_len);
|
/php-src/ext/zlib/ |
H A D | zlib.c | 608 size_t filename_len; in PHP_FUNCTION() local 615 …if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS(), "p|b", &filename, &filename_len, &use_includ… in PHP_FUNCTION() 649 size_t filename_len, mode_len; in PHP_FUNCTION() local 654 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "ps|b", &filename, &filename_len, &mode, &mode_len, &us… in PHP_FUNCTION() 675 size_t filename_len; in PHP_FUNCTION() local 681 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "p|b", &filename, &filename_len, &use_include_path) == … in PHP_FUNCTION()
|
/php-src/ext/posix/ |
H A D | posix.c | 702 size_t filename_len, ret; in PHP_FUNCTION() local 706 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION() 738 size_t filename_len, ret; in PHP_FUNCTION() local 742 Z_PARAM_PATH(filename, filename_len) in PHP_FUNCTION()
|
/php-src/ext/pdo_pgsql/ |
H A D | pgsql_driver.c | 774 size_t table_name_len, filename_len, pg_delim_len = 0, pg_null_as_len = 0, pg_fields_len; in pgsqlCopyFromFile_internal() local 781 &table_name, &table_name_len, &filename, &filename_len, in pgsqlCopyFromFile_internal() 876 size_t table_name_len, pg_delim_len = 0, pg_null_as_len = 0, pg_fields_len, filename_len; in pgsqlCopyToFile_internal() local 885 &table_name, &table_name_len, &filename, &filename_len, in pgsqlCopyToFile_internal()
|