Searched defs:fname (Results 1 - 25 of 34) sorted by relevance

12

/PHP_TRUNK/ext/zip/lib/
H A Dzip_fopen.c41 zip_fopen(struct zip *za, const char *fname, zip_flags_t flags) argument
45 if ((idx=zip_name_locate(za, fname, flags)) < 0)
H A Dzip_fopen_encrypted.c41 zip_fopen_encrypted(struct zip *za, const char *fname, zip_flags_t flags, const char *password) argument
45 if ((idx=zip_name_locate(za, fname, flags)) < 0)
H A Dzip_name_locate.c46 zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags) argument
48 return _zip_name_locate(za, fname, flags, &za->error);
54 _zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags, struct zip_error *error) argument
63 if (fname == NULL) {
83 if (cmp(fname, fn) == 0) {
H A Dzip_source_file.c44 zip_source_file(struct zip *za, const char *fname, zip_uint64_t start, argument
50 if (fname == NULL || len < -1) {
55 return _zip_source_file_or_p(za, fname, NULL, start, len, 1, NULL);
H A Dzip_source_filep.c45 char *fname; /* name of file to copy from */ member in struct:read_file
79 _zip_source_file_or_p(struct zip *za, const char *fname, FILE *file, argument
86 if (file == NULL && fname == NULL) {
96 f->fname = NULL;
97 if (fname) {
98 if ((f->fname=strdup(fname)) == NULL) {
107 f->closep = f->fname ? 1 : closep;
136 if (z->fname) {
137 if ((z->f=fopen(z->fname, "r
[all...]
H A Dzip_stat.c41 zip_stat(struct zip *za, const char *fname, zip_flags_t flags, struct zip_stat *st) argument
45 if ((idx=zip_name_locate(za, fname, flags)) < 0)
/PHP_TRUNK/ext/curl/
H A Dcurl_file.c34 char *fname = NULL, *mime = NULL, *postname = NULL; local
38 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|ss", &fname, &fname_len, &mime, &mime_len, &postname, &postname_len) == FAILURE) {
42 if (fname) {
43 zend_update_property_string(curl_CURLFile_class, cf, "name", sizeof("name")-1, fname);
/PHP_TRUNK/ext/spl/
H A Dspl_directory.c913 char *fname = NULL; local
927 fname = intern->file_name + path_len + 1;
930 fname = intern->file_name;
934 ret = php_basename(fname, flen, NULL, 0);
957 zend_string *fname; local
963 fname = php_basename(intern->u.dir.entry.d_name, strlen(intern->u.dir.entry.d_name), NULL, 0);
965 p = zend_memrchr(fname->val, '.', fname->len);
967 idx = (int)(p - fname->val);
968 RETVAL_STRINGL(fname
982 char *fname, *suffix = 0; local
1011 zend_string *fname; local
[all...]
/PHP_TRUNK/ext/fileinfo/libmagic/
H A Dapptype.c50 fname[_MAX_FNAME], ext[_MAX_EXT]; local
61 _splitpath(filename, drive, dir, fname, ext);
64 fname,
88 printf("%s: not an executable file\n", fname);
90 printf("%s: not found\n", fname);
92 printf("%s: access denied\n", fname);
94 printf("%s: error code = %lu\n", fname, rc);
/PHP_TRUNK/ext/phar/
H A Dfunc_interceptors.c46 char *arch, *entry, *fname; local
48 fname = (char*)zend_get_executed_filename();
53 if (strncasecmp(fname, "phar://", 7)) {
56 fname_len = strlen(fname);
57 if (SUCCESS == phar_split_fname(fname, fname_len, &arch, &arch_len, &entry, &entry_len, 2, 0)) {
120 char *arch, *entry, *fname; local
125 fname = (char*)zend_get_executed_filename();
127 if (strncasecmp(fname, "phar://", 7)) {
130 fname_len = strlen(fname);
131 if (SUCCESS == phar_split_fname(fname, fname_le
250 char *arch, *entry, *fname; local
351 char *arch, *entry, *fname; local
627 char *arch, *entry, *fname; local
921 char *arch, *entry, *fname; local
988 char *arch, *entry, *fname; local
[all...]
H A Dphar.c208 if (phar->alias && phar->alias != phar->fname) {
213 if (phar->fname) {
214 pefree(phar->fname, phar->is_persistent);
215 phar->fname = NULL;
278 || zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) {
299 if (zend_hash_str_del(&(PHAR_G(phar_fname_map)), phar->fname, phar->fname_len) != SUCCESS) {
489 spprintf(error, 0, msg, fname);\
532 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error) /* {{{ */ argument
543 unixfname = estrndup(fname, fname_len);
548 && !strncmp(unixfname, phar->fname, fname_le
662 phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, zend_long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error) argument
1244 phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error) argument
1321 phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error) argument
1476 phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error) argument
1567 phar_open_from_fp(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, int is_data, char **error) argument
1739 phar_analyze_path(const char *fname, const char *ext, int ext_len, int for_create) argument
1841 phar_check_str(const char *fname, const char *ext_str, int ext_len, int executable, int for_create) argument
2253 char *fname; local
[all...]
H A Dphar_internal.h290 char *fname; member in struct:_phar_archive_data
292 /* for phar_detect_fname_ext, this stores the location of the file extension within fname */
532 memcpy(tmp, entry->phar->fname, entry->phar->fname_len);
545 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error);
546 int phar_open_or_create_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error);
547 int phar_create_or_parse_filename(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error);
550 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error);
551 int phar_open_parsed_phar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error);
552 int phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_type, char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error);
579 int phar_is_tar(char *buf, char *fname);
[all...]
H A Dtar.c100 int phar_is_tar(char *buf, char *fname) /* {{{ */ argument
116 if (!ret && strstr(fname, ".tar")) {
124 int phar_open_or_create_tar(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error) /* {{{ */ argument
127 int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error);
152 spprintf(error, 4096, "phar tar error: \"%s\" already exists as a regular phar and must be deleted from disk prior to creating as a tar-based phar", fname);
195 int phar_parse_tarfile(php_stream* fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, int is_data, php_uint32 compression, char **error) /* {{{ */ argument
216 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname);
263 spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot process", fname);
274 spprintf(error, 4096, "phar error: tar-based phar \"%s\" signature cannot be read", fname);
288 if (FAILURE == phar_verify_signature(fp, php_stream_tell(fp) - size - 512, myphar->sig_flags, buf + 8, size - 8, fname,
[all...]
H A Dutil.c256 char *path, *fname, *arch, *entry, *test; local
270 fname = (char*)zend_get_executed_filename();
271 fname_len = strlen(fname);
273 if (PHAR_G(last_phar) && !memcmp(fname, "phar://", 7) && fname_len - 7 >= PHAR_G(last_phar_name_len) && !memcmp(fname + 7, PHAR_G(last_phar_name), PHAR_G(last_phar_name_len))) {
280 if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fname), &arch, &arch_len, &entry, &entry_len, 1, 0)) {
352 int phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security) /* {{{ */ argument
371 if (FAILURE == phar_get_archive(&phar, fname, fname_le
513 phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, const char *mode, char allow_dir, char **error, int security) argument
960 phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error) argument
1478 phar_verify_signature(php_stream *fp, size_t end_of_phar, php_uint32 sig_type, char *sig, int sig_len, char *fname, char **signature, int *signature_len, char **error) argument
1979 char *fname; local
[all...]
H A Dzip.c166 int phar_parse_zipfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, phar_archive_data** pphar, char **error) /* {{{ */ argument
185 spprintf(error, 4096, "phar error: unable to search for end of central directory in zip-based phar \"%s\"", fname);
196 spprintf(error, 4096, "phar error: unable to read in data to search for end of central directory in zip-based phar \"%s\"", fname);
208 spprintf(error, 4096, "phar error: split archives spanning multiple zips cannot be processed in zip-based phar \"%s\"", fname);
215 spprintf(error, 4096, "phar error: corrupt zip archive, conflicting file count in end of central directory record in zip-based phar \"%s\"", fname);
231 spprintf(error, 4096, "phar error: corrupt zip archive, zip file comment truncated in zip-based phar \"%s\"", fname);
257 spprintf(error, 4096, "phar error: end of central directory not found in zip-based phar \"%s\"", fname);
262 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent);
264 phar_unixify_path_separators(mydata->fname, fname_le
742 phar_open_or_create_zip(char *fname, int fname_len, char *alias, int alias_len, int is_data, int options, phar_archive_data** pphar, char **error) argument
[all...]
H A Dphar_object.c59 static void phar_mung_server_vars(char *fname, char *entry, int entry_len, char *basename, int request_uri_len) /* {{{ */ argument
87 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry);
134 zend_string *str = strpprintf(4096, "phar://%s%s", fname, entry);
325 static void phar_do_404(phar_archive_data *phar, char *fname, int fname_len, char *f404, size_t f404_len, char *entry, size_t entry_len) /* {{{ */ argument
334 phar_file_action(phar, info, "text/html", PHAR_MIME_PHP, f404, f404_len, fname, NULL, NULL, 0);
353 static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len) /* {{{ */ argument
360 pphar = zend_hash_str_find_ptr(&(PHAR_G(phar_fname_map)), fname, fname_len);
363 pphar = zend_hash_str_find_ptr(&cached_phars, fname, fname_len);
420 char *fname, *arch, *entry; local
428 fname
457 char *fname, *arch = NULL, *entry = NULL, *path, *actual; local
551 char *fname, *path_info, *mime_type = NULL, *entry, *pt; local
984 char *fname, *alias = NULL, *error; local
1061 char *fname; local
1307 char *fname, *error, *zname, *arch, *entry; local
1412 char *fname, *error = NULL, *base = p_obj->b, *save = NULL, *temp = NULL; local
2573 char *fname; local
3493 char *fname; local
3530 char *fname, *error; local
3674 char *fname, *cont_str = NULL; local
3713 char *fname, *error; local
3788 char *fname, *localname = NULL; local
4346 char *fname, *arch, *entry, *error; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c871 const char *fname; local
887 fname = ops->function_name->val;
890 fname = "main";
894 return zend_hash_str_find_ptr(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], fname, flen);
H A Dphpdbg_info.c64 zend_string *fname; local
74 ZEND_HASH_FOREACH_STR_KEY(&EG(included_files), fname) {
75 phpdbg_writeln("includedfile", "name=\"%s\"", "File: %s", fname);
H A Dphpdbg_utils.c165 PHPDBG_API const zend_function *phpdbg_get_function(const char *fname, const char *cname) /* {{{ */ argument
168 zend_string *lfname = zend_string_alloc(strlen(fname), 0);
169 memcpy(lfname->val, zend_str_tolower_dup(fname, lfname->len), lfname->len + 1);
/PHP_TRUNK/ext/standard/
H A Dvar_unserializer.c468 zval fname; local
482 ZVAL_STRINGL(&fname, "__wakeup", sizeof("__wakeup") - 1);
484 call_user_function_ex(CG(function_table), rval, &fname, &retval, 0, 0, 1, NULL); local
486 zval_dtor(&fname);
H A Dvar.c836 zval fname; local
866 ZVAL_STRINGL(&fname, "__sleep", sizeof("__sleep") - 1);
868 res = call_user_function_ex(CG(function_table), struc, &fname, &retval, 0, 0, 1, NULL);
870 zval_dtor(&fname);
/PHP_TRUNK/Zend/
H A Dzend_exceptions.c618 zval fname, rv; local
625 ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1);
635 ZVAL_COPY_VALUE(&fci.function_name, &fname);
671 zval_dtor(&fname);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_auth.c488 const char * fname = (net_options->sha256_server_public_key && net_options->sha256_server_public_key[0] != '\0')? local
496 if (!fname || fname[0] == '\0') {
546 DBG_INF_FMT("Key in a file. [%s]", fname);
547 stream = php_stream_open_wrapper((char *) fname, "rb", REPORT_ERRORS, NULL);
/PHP_TRUNK/ext/wddx/
H A Dwddx.c442 zval *ent, fname, *varname; local
449 ZVAL_STRING(&fname, "__sleep");
454 if (call_user_function_ex(CG(function_table), obj, &fname, &retval, 0, 0, 1, NULL) == SUCCESS) {
523 zval_ptr_dtor(&fname);
892 zval fname, retval; local
894 ZVAL_STRING(&fname, "__wakeup");
896 call_user_function_ex(NULL, &ent1->data, &fname, &retval, 0, 0, 0, NULL);
898 zval_ptr_dtor(&fname);
/PHP_TRUNK/ext/json/
H A Djson_encoder.c449 zval retval, fname; local
464 ZVAL_STRING(&fname, "jsonSerialize");
466 if (FAILURE == call_user_function_ex(EG(function_table), val, &fname, &retval, 0, NULL, 1, NULL) || Z_TYPE(retval) == IS_UNDEF) {
469 zval_ptr_dtor(&fname);
476 zval_ptr_dtor(&fname);
491 zval_ptr_dtor(&fname);

Completed in 34 milliseconds

12