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

12

/PHP_TRUNK/ext/phar/
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 Dphp_phar.h37 PHP_PHAR_API int phar_resolve_alias(char *alias, int alias_len, char **filename, int *filename_len TSRMLS_DC);
H A Ddirstream.c511 entry.filename_len = strlen(resource->path + 1);
520 if (NULL == zend_hash_str_add_mem(&phar->manifest, entry.filename, entry.filename_len, (void*)&entry, sizeof(phar_entry_info))) {
531 zend_hash_str_del(&phar->manifest, entry.filename, entry.filename_len);
536 phar_add_virtual_dirs(phar, entry.filename, entry.filename_len TSRMLS_CC);
H A Dutil.c170 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC) /* {{{ */ argument
186 is_phar = (filename_len > 7 && !memcmp(filename, "phar://", 7));
193 entry.filename_len = path_len;
195 entry.tmp = estrndup(filename, filename_len);
199 entry.tmp = estrndup(filename, filename_len);
253 char *phar_find_in_include_path(char *filename, int filename_len, phar_archive_data **pphar TSRMLS_DC) /* {{{ */ argument
266 return phar_save_resolve_path(filename, filename_len TSRMLS_CC);
280 return phar_save_resolve_path(filename, filename_len TSRMLS_CC);
290 return phar_save_resolve_path(filename, filename_len TSRMLS_CC);
297 try_len = filename_len;
[all...]
H A Dfunc_interceptors.c29 size_t filename_len; local
41 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|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 size_t filename_len; local
115 if (zend_parse_parameters_ex(ZEND_PARSE_PARAMS_QUIET, ZEND_NUM_ARGS() TSRMLS_CC, "p|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) {
119 if (use_include_path || (!IS_ABSOLUTE_PATH(filename, filename_len) && !strstr(filename, "://"))) {
137 entry_len = filename_len;
227 size_t filename_len; local
323 size_t filename_len, mode_len; local
892 size_t filename_len; local
959 size_t filename_len; local
[all...]
H A Dphar.c30 char *(*phar_save_resolve_path)(const char *filename, int filename_len TSRMLS_DC);
473 zend_hash_str_del(&idata->phar->manifest, idata->internal_file->filename, idata->internal_file->filename_len);
1071 PHAR_GET_32(buffer, entry.filename_len);
1073 if (entry.filename_len == 0) {
1081 if (buffer + entry.filename_len + 20 > endbuffer) {
1085 if ((manifest_ver & PHAR_API_VER_MASK) >= PHAR_API_MIN_DIR && buffer[entry.filename_len - 1] == '/') {
1091 phar_add_virtual_dirs(mydata, buffer, entry.filename_len TSRMLS_CC);
1092 entry.filename = pestrndup(buffer, entry.filename_len, entry.is_persistent);
1093 buffer += entry.filename_len;
1113 entry.filename_len
1898 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
2234 phar_split_fname(const 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 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 && NULL != (mentry = zend_hash_str_find_ptr(&(entry->phar->manifest), entry->filename + sizeof(".phar/.metadata/") - 1, entry->filename_len - (sizeof("/.metadata.bin") - 1 + sizeof(".phar/.metadata/") - 1)))) {
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 Dzip.c364 entry.offset = entry.offset_abs = PHAR_GET_32(zipentry.offset) + sizeof(phar_zip_file_header) + PHAR_GET_16(zipentry.filename_len) +
371 if (!PHAR_GET_16(zipentry.filename_len)) {
375 entry.filename_len = PHAR_GET_16(zipentry.filename_len);
376 entry.filename = (char *) pemalloc(entry.filename_len + 1, entry.is_persistent);
378 if (entry.filename_len != php_stream_read(fp, entry.filename, entry.filename_len)) {
383 entry.filename[entry.filename_len] = '\0';
385 if (entry.filename[entry.filename_len - 1] == '/') {
387 entry.filename_len
[all...]
H A Dphar_internal.h248 php_uint32 filename_len; member in struct:_phar_entry_info
495 extern char *(*phar_save_resolve_path)(const char *filename, int filename_len TSRMLS_DC);
530 tmp_len = entry->filename_len + entry->phar->fname_len;
532 memcpy(tmp + entry->phar->fname_len, entry->filename, entry->filename_len);
559 void phar_remove_virtual_dirs(phar_archive_data *phar, char *filename, int filename_len TSRMLS_DC);
560 void phar_add_virtual_dirs(phar_archive_data *phar, char *filename, int filename_len TSRMLS_DC);
561 int phar_mount_entry(phar_archive_data *phar, char *filename, int filename_len, char *path, int path_len TSRMLS_DC);
604 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);
605 int phar_split_fname(const char *filename, int filename_len, char **arch, int *arch_len, char **entry, int *entry_len, int executable, int for_create TSRMLS_DC);
/PHP_TRUNK/ext/zip/lib/
H A Dzip_dirent.c347 zip_uint16_t filename_len, comment_len, ef_len;
399 filename_len = _zip_read2(&cur);
420 size += filename_len+ef_len+comment_len;
427 if (filename_len) {
428 zde->filename = _zip_read_string(bufp ? &cur : NULL, fp, filename_len, 1, error);
335 zip_uint16_t filename_len, comment_len, ef_len; local
/PHP_TRUNK/Zend/
H A Dzend.h192 char *(*resolve_path_function)(const char *filename, int filename_len TSRMLS_DC);
270 extern ZEND_API char *(*zend_resolve_path)(const char *filename, int filename_len TSRMLS_DC);
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_persist.c378 size_t filename_len; local
388 &filename, &filename_len, &remember)) {
441 size_t filename_len; local
452 &filename, &filename_len, &flags)) {
/PHP_TRUNK/ext/ftp/
H A Dftp.h142 int ftp_chmod(ftpbuf_t *ftp, const int mode, const char *filename, const int filename_len);
/PHP_TRUNK/ext/oci8/
H A Doci8_interface.c234 size_t filename_len; local
238 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
240 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
247 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Op", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len) == FAILURE) {
249 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Os", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len) == FAILURE) {
257 if (strlen(filename) != filename_len) {
881 size_t filename_len; local
888 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|ll", &filename, &filename_len, &start, &length) == FAILURE) {
890 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|ll", &filename, &filename_len, &start, &length) == FAILURE) {
906 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "Op|ll", &z_descriptor, oci_lob_class_entry_ptr, &filename, &filename_len,
[all...]
/PHP_TRUNK/ext/standard/
H A Ddl.c57 size_t filename_len; local
59 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
68 if (filename_len >= MAXPATHLEN) {
H A Dfilestat.c423 size_t filename_len; local
431 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pz/", &filename, &filename_len, &group) == FAILURE) {
560 size_t filename_len; local
568 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pz/", &filename, &filename_len, &user) == FAILURE) {
670 size_t filename_len; local
676 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pl", &filename, &filename_len, &mode) == FAILURE) {
716 size_t filename_len; local
724 if (zend_parse_parameters(argc TSRMLS_CC, "p|ll", &filename, &filename_len, &filetime, &fileatime) == FAILURE) {
728 if (!filename_len) {
803 PHPAPI void php_clear_stat_cache(zend_bool clear_realpath_cache, const char *filename, int filename_len TSRMLS_D
832 size_t filename_len = 0; local
[all...]
H A Dphp_filestat.h87 PHPAPI void php_clear_stat_cache(zend_bool clear_realpath_cache, const char *filename, int filename_len TSRMLS_DC);
H A Dfile.c383 size_t filename_len; local
396 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|b", &filename, &filename_len, &use_include_path) == FAILURE) {
526 size_t filename_len; local
536 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|br!ll", &filename, &filename_len, &use_include_path, &zcontext, &offset, &maxlen) == FAILURE) {
580 size_t filename_len; local
590 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "pz/|lr!", &filename, &filename_len, &data, &flags, &zcontext) == FAILURE) {
604 if (php_memnstr(filename, "://", sizeof("://") - 1, filename + filename_len)) {
717 size_t filename_len; local
731 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|lr!", &filename, &filename_len, &flags, &zcontext) == FAILURE) {
864 size_t filename_len, mode_le local
1386 size_t filename_len; local
1498 size_t filename_len; local
2329 size_t filename_len; local
2473 size_t pattern_len, filename_len; local
[all...]
/PHP_TRUNK/ext/zip/
H A Dphp_zip.h82 int filename_len; member in struct:_ze_zip_object
/PHP_TRUNK/ext/zlib/
H A Dzlib.c536 size_t filename_len; local
543 if (SUCCESS != zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p|l", &filename, &filename_len, &use_include_path)) {
578 size_t filename_len, mode_len; local
583 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &filename, &filename_len, &mode, &mode_len, &use_include_path) == FAILURE) {
605 size_t filename_len; local
611 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &filename, &filename_len, &use_include_path) == FAILURE) {
/PHP_TRUNK/main/
H A Dfopen_wrappers.h49 PHPAPI char *php_resolve_path(const char *filename, int filename_len, const char *path TSRMLS_DC);
/PHP_TRUNK/sapi/apache/
H A Dphp_apache.c350 int filename_len; local
353 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
462 int filename_len; local
465 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
540 int filename_len;
543 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &filename, &filename_len) == FAILURE) {
/PHP_TRUNK/sapi/apache2filter/
H A Dphp_functions.c63 int filename_len; local
66 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
102 int filename_len; local
104 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
/PHP_TRUNK/sapi/apache2handler/
H A Dphp_functions.c75 size_t filename_len; local
78 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
122 size_t filename_len; local
124 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &filename, &filename_len) == FAILURE) {
/PHP_TRUNK/ext/opcache/
H A DZendAccelerator.c105 static char *(*accelerator_orig_zend_resolve_path)(const char *filename, int filename_len TSRMLS_DC);
1045 int zend_accel_invalidate(const char *filename, int filename_len, zend_bool force TSRMLS_DC) argument
1054 realpath = accelerator_orig_zend_resolve_path(filename, filename_len TSRMLS_CC);
1705 int filename_len = strlen(filename);
1707 if ((IS_ABSOLUTE_PATH(filename, filename_len) ||
1709 (persistent_script = zend_accel_hash_find(&ZCSG(hash), (char*)filename, filename_len)) != NULL &&
1730 static char* persistent_zend_resolve_path(const char *filename, int filename_len TSRMLS_DC)
1754 if ((IS_ABSOLUTE_PATH(filename, filename_len) ||
1756 (bucket = zend_accel_hash_find_entry(&ZCSG(hash), (char*)filename, filename_len)) != NULL) {
1771 key = accel_make_persistent_key_ex(&handle, filename_len,
[all...]

Completed in 72 milliseconds

12