Searched refs:filename_len (Results 1 - 25 of 49) sorted by relevance

12

/PHP_5_3/ext/zip/lib/
H A Dzip_file_get_offset.c71 offset += LENTRYSIZE + de.filename_len + de.extrafield_len;
H A Dzip_dirent.c166 if (zde->filename_len > 0) {
195 de->filename_len = 0;
286 zde->filename_len = _zip_read2(&cur);
307 size += zde->filename_len+zde->extrafield_len+zde->comment_len;
315 if (zde->filename_len) {
316 zde->filename = _zip_readstr(&cur, zde->filename_len, 1, error);
335 if (zde->filename_len) {
336 zde->filename = _zip_readfpstr(fp, zde->filename_len, 1, error);
456 _zip_write2(zde->filename_len, fp);
467 if (zde->filename_len)
[all...]
H A Dzip_close.c185 de.filename_len = 1;
187 cd->entry[j].filename_len = 1;
191 de.filename_len = strlen(de.filename);
193 cd->entry[j].filename_len = de.filename_len;
225 de.filename_len = strlen(de.filename);
227 cd->entry[j].filename_len = de.filename_len;
/PHP_5_3/ext/com_dotnet/
H A Dcom_persist.c376 int filename_len; local
386 &filename, &filename_len, &remember)) {
392 if (strlen(filename) != filename_len) {
443 int filename_len; local
454 &filename, &filename_len, &flags)) {
459 if (strlen(filename) != filename_len) {
/PHP_5_3/ext/ftp/
H A Dftp.h142 int ftp_chmod(ftpbuf_t *ftp, const int mode, const char *filename, const int filename_len);
/PHP_5_3/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 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Op", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len) == FAILURE) {
248 if (zend_parse_parameters(ZEND_NUM_ARGS() 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, &length) == FAILURE) {
889 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &filename, &filename_len, &start, &length) == FAILURE) {
905 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Op|ll", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len,
[all...]
/PHP_5_3/ext/standard/
H A Ddl.c57 int filename_len; local
59 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
71 if (filename_len >= MAXPATHLEN) {
H A Dfilestat.c397 int filename_len; local
402 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/", &filename, &filename_len, &group) == FAILURE) {
406 if (strlen(filename) != filename_len) {
502 int filename_len; local
507 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/", &filename, &filename_len, &user) == FAILURE) {
511 if (strlen(filename) != filename_len) {
609 int filename_len; local
614 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl", &filename, &filename_len, &mode) == FAILURE) {
622 if (strlen(filename) != filename_len) {
668 int filename_len; local
765 int filename_len = 0; local
[all...]
H A Dphp_filestat.h92 PHPAPI void php_clear_stat_cache(zend_bool clear_realpath_cache, const char *filename, int filename_len TSRMLS_DC);
H A Dfile.c373 int filename_len; local
386 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &filename, &filename_len, &use_include_path) == FAILURE) {
390 if (strlen(filename) != filename_len) {
532 int filename_len; local
543 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) {
547 if (strlen(filename) != filename_len) {
594 int filename_len; local
603 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sz/|lr!", &filename, &filename_len, &data, &flags, &zcontext) == FAILURE) {
607 if (strlen(filename) != filename_len) {
621 if (php_memnstr(filename, "://", sizeof("://") - 1, filename + filename_len)) {
738 int filename_len; local
913 int filename_len, mode_len; local
1468 int filename_len; local
1592 int filename_len; local
2430 int filename_len; local
2576 int pattern_len, filename_len; local
[all...]
/PHP_5_3/ext/zip/
H A Dphp_zip.h81 int filename_len; member in struct:_ze_zip_object
H A Dphp_zip.c307 static int php_zip_add_file(struct zip *za, const char *filename, size_t filename_len, argument
1209 int filename_len; local
1214 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
1218 if (filename_len == 0) {
1223 if (strlen(filename) != filename_len) {
1493 int filename_len; local
1501 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len, &flags) == FAILURE) {
1510 if (filename_len == 0) {
1515 if (strlen(filename) != filename_len) {
1544 ze_obj->filename_len
1782 int filename_len; local
2517 int filename_len; local
2600 int filename_len; local
[all...]
/PHP_5_3/ext/zlib/
H A Dzlib.c394 int filename_len; local
401 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len, &flags) == FAILURE) {
439 int filename_len, mode_len; local
444 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &filename, &filename_len, &mode, &mode_len, &flags) == FAILURE) {
467 int filename_len; local
473 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len, &flags) == FAILURE) {
/PHP_5_3/main/
H A Dfopen_wrappers.h48 PHPAPI char *php_resolve_path(const char *filename, int filename_len, const char *path TSRMLS_DC);
/PHP_5_3/sapi/apache/
H A Dphp_apache.c350 int filename_len; local
353 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
464 int filename_len; local
467 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
541 int filename_len;
545 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
/PHP_5_3/sapi/apache2filter/
H A Dphp_functions.c63 int filename_len; local
66 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
102 int filename_len; local
104 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
/PHP_5_3/sapi/apache2handler/
H A Dphp_functions.c75 int filename_len; local
78 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
122 int filename_len; local
124 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
/PHP_5_3/ext/phar/
H A Ddirstream.c534 entry.filename_len = strlen(resource->path + 1);
543 if (SUCCESS != zend_hash_add(&phar->manifest, entry.filename, entry.filename_len, (void*)&entry, sizeof(phar_entry_info), NULL)) {
554 zend_hash_del(&phar->manifest, entry.filename, entry.filename_len);
559 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len TSRMLS_CC);
H A Dfunc_interceptors.c29 int filename_len; local
41 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|z", &filename, &filename_len, &zcontext) == FAILURE) {
45 if (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://")) {
63 entry = estrndup(filename, filename_len);
65 entry_len = filename_len;
97 int filename_len; local
116 if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "s|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) {
120 if (use_include_path || (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://"))) {
138 entry_len = filename_len;
233 int filename_len; local
329 int filename_len, mode_len; local
898 int filename_len; local
965 int filename_len; local
[all...]
H A Dphar.c31 char *(*phar_save_resolve_path)(const char *filename, int filename_len TSRMLS_DC);
469 zend_hash_del(&idata->phar->manifest, idata->internal_file->filename, idata->internal_file->filename_len);
1068 PHAR_GET_32(buffer, entry.filename_len);
1070 if (entry.filename_len == 0) {
1078 if (buffer + entry.filename_len + 20 > endbuffer) {
1082 if ((manifest_ver & PHAR_API_VER_MASK) >= PHAR_API_MIN_DIR && buffer[entry.filename_len - 1] == '/') {
1088 phar_add_virtual_dirs(mydata, buffer, entry.filename_len TSRMLS_CC);
1089 entry.filename = pestrndup(buffer, entry.filename_len, entry.is_persistent);
1090 buffer += entry.filename_len;
1110 entry.filename_len
1901 phar_detect_phar_fname_ext(const char *filename, int filename_len, const char **ext_str, int *ext_len, int executable, int for_create, int is_complete TSRMLS_DC) argument
2260 phar_split_fname(char *filename, int filename_len, char **arch, int *arch_len, char **entry, int *entry_len, int executable, int for_create TSRMLS_DC) argument
[all...]
H A Dphar_internal.h264 php_uint32 filename_len; member in struct:_phar_entry_info
520 extern char *(*phar_save_resolve_path)(const char *filename, int filename_len TSRMLS_DC);
622 tmp_len = entry->filename_len + entry->phar->fname_len;
624 memcpy(tmp + entry->phar->fname_len, entry->filename, entry->filename_len);
651 void phar_remove_virtual_dirs(phar_archive_data *phar, char *filename, int filename_len TSRMLS_DC);
652 void phar_add_virtual_dirs(phar_archive_data *phar, char *filename, int filename_len TSRMLS_DC);
653 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC);
696 int phar_detect_phar_fname_ext(const char *filename, int filename_len, const char **ext_str, int *ext_len, int executable, int for_create, int is_complete TSRMLS_DC);
697 int phar_split_fname(char *filename, int filename_len, char **arch, int *arch_len, char **entry, int *entry_len, int executable, int for_create TSRMLS_DC);
H A Dpharzip.h32 char filename_len[2]; /* file name length 2 bytes */ member in struct:_phar_zip_file_header
162 char filename_len[2]; /* file name length 2 bytes */ member in struct:_phar_zip_central_dir_file
H A Dtar.c180 if (entry->filename_len == sizeof(".phar/.metadata.bin")-1 && !memcmp(entry->filename, ".phar/.metadata.bin", sizeof(".phar/.metadata.bin")-1)) {
183 } else if (entry->filename_len >= sizeof(".phar/.metadata/") + sizeof("/.metadata.bin") - 1 && SUCCESS == zend_hash_find(&(entry->phar->manifest), entry->filename + sizeof(".phar/.metadata/") - 1, entry->filename_len - (sizeof("/.metadata.bin") - 1 + sizeof(".phar/.metadata/") - 1), (void *)&mentry)) {
339 entry.filename_len = entry.uncompressed_filesize;
342 if (entry.filename_len == UINT_MAX) {
350 entry.filename = pemalloc(entry.filename_len+1, myphar->is_persistent);
352 read = php_stream_read(fp, entry.filename, entry.filename_len);
353 if (read != entry.filename_len) {
362 entry.filename[entry.filename_len] = '\0';
409 entry.filename_len
[all...]
H A Dutil.c175 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC) /* {{{ */ argument
191 is_phar = (filename_len > 7 && !memcmp(filename, "phar://", 7));
198 entry.filename_len = path_len;
200 entry.tmp = estrndup(filename, filename_len);
204 entry.tmp = estrndup(filename, filename_len);
258 char *phar_find_in_include_path(char *filename, int filename_len, phar_archive_data **pphar TSRMLS_DC) /* {{{ */ argument
272 return phar_save_resolve_path(filename, filename_len TSRMLS_CC);
286 return phar_save_resolve_path(filename, filename_len TSRMLS_CC);
296 return phar_save_resolve_path(filename, filename_len TSRMLS_CC);
303 try_len = filename_len;
[all...]
H A Dzip.c376 entry.offset = entry.offset_abs = PHAR_GET_32(zipentry.offset) + sizeof(phar_zip_file_header) + PHAR_GET_16(zipentry.filename_len) +
383 if (!PHAR_GET_16(zipentry.filename_len)) {
387 entry.filename_len = PHAR_GET_16(zipentry.filename_len);
388 entry.filename = (char *) pemalloc(entry.filename_len + 1, entry.is_persistent);
390 if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) {
395 entry.filename[entry.filename_len] = '\0';
397 if (entry.filename[entry.filename_len - 1] == '/') {
399 entry.filename_len
[all...]

Completed in 47 milliseconds

12