Home
last modified time | relevance | path

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

123

/PHP-5.5/ext/phar/
H A Dtar.c359 if (entry.filename_len == UINT_MAX || entry.filename_len == 0) { in phar_parse_tarfile()
370 if (read != entry.filename_len) { in phar_parse_tarfile()
379 entry.filename[entry.filename_len] = '\0'; in phar_parse_tarfile()
426 entry.filename_len = i+j; in phar_parse_tarfile()
428 if (name[entry.filename_len - 1] == '/') { in phar_parse_tarfile()
430 entry.filename_len--; in phar_parse_tarfile()
442 entry.filename_len = i; in phar_parse_tarfile()
448 entry.filename_len--; in phar_parse_tarfile()
722 if (entry->filename_len > 100) { in phar_tar_writeheaders()
724 if (entry->filename_len > 256) { in phar_tar_writeheaders()
[all …]
H A Dfunc_interceptors.c29 int filename_len; in PHAR_FUNC() local
65 entry_len = filename_len; in PHAR_FUNC()
97 int filename_len; in PHAR_FUNC() local
138 entry_len = filename_len; in PHAR_FUNC()
233 int filename_len; in PHAR_FUNC() local
269 entry_len = filename_len; in PHAR_FUNC()
329 int filename_len, mode_len; in PHAR_FUNC() local
365 entry_len = filename_len; in PHAR_FUNC()
814 int filename_len; \
898 int filename_len; in PharFileFunction() local
[all …]
H A Dzip.c383 if (!PHAR_GET_16(zipentry.filename_len)) { in phar_parse_zipfile()
387 entry.filename_len = PHAR_GET_16(zipentry.filename_len); in phar_parse_zipfile()
390 if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) { in phar_parse_zipfile()
399 if(entry.filename_len > 1) { in phar_parse_zipfile()
400 entry.filename_len--; in phar_parse_zipfile()
825 PHAR_SET_16(central.filename_len, entry->filename_len + (entry->is_dir ? 1 : 0)); in phar_zip_changed_apply()
826 PHAR_SET_16(local.filename_len, entry->filename_len + (entry->is_dir ? 1 : 0)); in phar_zip_changed_apply()
972 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply()
982 if (entry->filename_len != php_stream_write(p->centralfp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply()
992 if (entry->filename_len != php_stream_write(p->filefp, entry->filename, entry->filename_len)) { in phar_zip_changed_apply()
[all …]
H A Dpharzip.h32 char filename_len[2]; /* file name length 2 bytes */ member
162 char filename_len[2]; /* file name length 2 bytes */ member
H A Dphp_phar.h37 PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len
H A Dphar.c1062 PHAR_GET_32(buffer, entry.filename_len);
1064 if (entry.filename_len == 0) {
1084 buffer += entry.filename_len;
1104 entry.filename_len--;
1898 if (!filename_len || filename_len == 1) {
1969 if (keylen > (uint) filename_len) {
1999 if (keylen > (uint) filename_len) {
2270 filename_len -= 7;
2306 *entry_len = filename_len - *arch_len;
2440 PHAR_ZIP_16(local.filename_len) +
[all …]
H A Dphar_internal.h266 php_uint32 filename_len; member
521 extern char *(*phar_save_resolve_path)(const char *filename, int filename_len TSRMLS_DC);
566 tmp_len = MIN(MAXPATHLEN, entry->filename_len + entry->phar->fname_len); in phar_set_inode()
571 len2 = MIN(tmp_len - len1, entry->filename_len); in phar_set_inode()
600 void phar_remove_virtual_dirs(phar_archive_data *phar, char *filename, int filename_len TSRMLS_DC);
601 void phar_add_virtual_dirs(phar_archive_data *phar, char *filename, int filename_len TSRMLS_DC);
602 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int pat…
645 int phar_detect_phar_fname_ext(const char *filename, int filename_len, const char **ext_str, int *e…
646 int phar_split_fname(char *filename, int filename_len, char **arch, int *arch_len, char **entry, in…
H A Dutil.c193 entry.filename_len = path_len; in phar_mount_entry()
195 entry.tmp = estrndup(filename, filename_len); in phar_mount_entry()
199 entry.tmp = estrndup(filename, filename_len); in phar_mount_entry()
297 try_len = filename_len; in phar_find_in_include_path()
562 etemp.filename_len = path_len; in phar_get_or_create_entry_data()
583 etemp.filename_len--; /* strip trailing / */ in phar_get_or_create_entry_data()
936 *filename_len = (*fd_ptr)->fname_len; in phar_resolve_alias()
1300 entry->filename_len = path_len; in phar_get_entry_info_dir()
1978 while ((s = zend_memrchr(filename, '/', filename_len))) {
1979 filename_len = s - filename;
[all …]
/PHP-5.5/ext/zip/lib/
H A Dzip_dirent.c160 if (zde->filename_len > 0) { in _zip_dirent_finalize()
188 de->filename_len = 0; in _zip_dirent_init()
278 zde->filename_len = _zip_read2(&cur); in _zip_dirent_read()
299 size += zde->filename_len+zde->extrafield_len+zde->comment_len; in _zip_dirent_read()
307 if (zde->filename_len) { in _zip_dirent_read()
308 zde->filename = _zip_readstr(&cur, zde->filename_len, 1, error); in _zip_dirent_read()
327 if (zde->filename_len) { in _zip_dirent_read()
328 zde->filename = _zip_readfpstr(fp, zde->filename_len, 1, error); in _zip_dirent_read()
446 _zip_write2(zde->filename_len, fp); in _zip_dirent_write()
457 if (zde->filename_len) in _zip_dirent_write()
[all …]
H A Dzip_close.c182 de.filename_len = 1; in zip_close()
184 cd->entry[j].filename_len = 1; in zip_close()
188 de.filename_len = strlen(de.filename); in zip_close()
190 cd->entry[j].filename_len = de.filename_len; in zip_close()
222 de.filename_len = strlen(de.filename); in zip_close()
224 cd->entry[j].filename_len = de.filename_len; in zip_close()
H A Dzip_file_get_offset.c69 offset += LENTRYSIZE + de.filename_len + de.extrafield_len; in _zip_file_get_offset()
/PHP-5.5/ext/standard/
H A Dfilestat.c423 int filename_len; in php_do_chgrp() local
560 int filename_len; in php_do_chown() local
670 int filename_len; in PHP_FUNCTION() local
716 int filename_len; in PHP_FUNCTION() local
728 if (!filename_len) { in PHP_FUNCTION()
818 realpath_cache_del(filename, filename_len TSRMLS_CC); in php_clear_stat_cache()
832 int filename_len = 0; in PHP_FUNCTION() local
838 php_clear_stat_cache(clear_realpath_cache, filename, filename_len TSRMLS_CC); in PHP_FUNCTION()
1083 int filename_len; \
1085 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) { \
[all …]
H A Ddl.c57 int filename_len; in PHP_FUNCTION() local
59 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
68 if (filename_len >= MAXPATHLEN) { in PHP_FUNCTION()
H A Dfile.c375 int filename_len; in PHP_FUNCTION() local
518 int filename_len; in PHP_FUNCTION() local
575 int filename_len; in PHP_FUNCTION() local
598 if (php_memnstr(filename, "://", sizeof("://") - 1, filename + filename_len)) { in PHP_FUNCTION()
719 int filename_len; in PHP_FUNCTION() local
865 int filename_len, mode_len; in PHP_NAMED_FUNCTION() local
1361 int filename_len; in PHP_FUNCTION() local
1473 int filename_len; in PHP_FUNCTION() local
2311 int filename_len; in PHP_FUNCTION() local
2449 int pattern_len, filename_len; in PHP_FUNCTION() local
[all …]
H A Dphp_filestat.h92 …clear_stat_cache(zend_bool clear_realpath_cache, const char *filename, int filename_len TSRMLS_DC);
/PHP-5.5/sapi/apache2filter/
H A Dphp_functions.c63 int filename_len; in PHP_FUNCTION() local
66 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
102 int filename_len; in PHP_FUNCTION() local
104 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
/PHP-5.5/sapi/apache/
H A Dphp_apache.c350 int filename_len; in PHP_FUNCTION() local
353 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
462 int filename_len; in PHP_FUNCTION() local
465 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
540 int filename_len;
543 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
/PHP-5.5/main/
H A Dfopen_wrappers.h49 PHPAPI char *php_resolve_path(const char *filename, int filename_len, const char *path TSRMLS_DC);
/PHP-5.5/ext/zip/
H A Dphp_zip.h81 int filename_len; member
H A Dphp_zip.c1221 int filename_len; in PHP_NAMED_FUNCTION() local
1230 if (filename_len == 0) { in PHP_NAMED_FUNCTION()
1501 int filename_len; in ZIPARCHIVE_METHOD() local
1518 if (filename_len == 0) { in ZIPARCHIVE_METHOD()
1548 ze_obj->filename_len = strlen(resolved_path); in ZIPARCHIVE_METHOD()
1576 ze_obj->filename_len = 0; in ZIPARCHIVE_METHOD()
1786 int filename_len; in ZIPARCHIVE_METHOD() local
1802 if (filename_len == 0) { in ZIPARCHIVE_METHOD()
1809 entry_name_len = filename_len; in ZIPARCHIVE_METHOD()
2518 int filename_len; in php_zip_get_from() local
[all …]
/PHP-5.5/ext/phar/tests/zip/files/
H A Dcorrupt2.php.inc12 $a->addFile('hii', null, 'hii', null, null, 'filename_len', 'filename_len');
/PHP-5.5/sapi/apache2handler/
H A Dphp_functions.c75 int filename_len; in PHP_FUNCTION() local
78 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
122 int filename_len; in PHP_FUNCTION() local
124 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) { in PHP_FUNCTION()
/PHP-5.5/ext/opcache/
H A DZendAccelerator.c1063 realpath = accelerator_orig_zend_resolve_path(filename, filename_len TSRMLS_CC); in zend_accel_invalidate()
1820 int filename_len; local
1823 filename_len = Z_STRLEN(opline->op1.u.constant);
1825 filename_len = strlen(filename);
1832 if (IS_ABSOLUTE_PATH(filename, filename_len) &&
1846 key = accel_make_persistent_key_ex(handle, filename_len, &key_length TSRMLS_CC);
1937 int filename_len = strlen(filename);
1939 if ((IS_ABSOLUTE_PATH(filename, filename_len) ||
1992 if ((IS_ABSOLUTE_PATH(filename, filename_len) ||
2009 key = accel_make_persistent_key_ex(&handle, filename_len, &key_length TSRMLS_CC);
[all …]
/PHP-5.5/ext/phar/tests/zip/
H A Dbzip2.phpt33 $a->addFile('hii', null, 'hii', null, null, 'filename_len', 'filename_len');
/PHP-5.5/ext/oci8/
H A Doci8_interface.c233 int filename_len; local
237 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
239 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
246 …() TSRMLS_CC, "Op", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len) == FAILURE) {
248 …() TSRMLS_CC, "Os", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len) == FAILURE) {
256 if (strlen(filename) != filename_len) {
880 int filename_len; local
887 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|ll", &filename, &filename_len, &start, &le…
889 …if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &filename, &filename_len, &start, &le…
905 …RMLS_CC, "Op|ll", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len, &start, &lengt…
[all …]

Completed in 277 milliseconds

123