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

12

/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/zip/lib/
H A Dzip_fopen.c43 zip_fopen(struct zip *za, const char *fname, zip_flags_t flags)
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
41 zip_fopen(struct zip *za, const char *fname, zip_flags_t flags) argument
H A Dzip_fopen_encrypted.c43 zip_fopen_encrypted(struct zip *za, const char *fname, zip_flags_t flags, const char *password)
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
41 zip_fopen_encrypted(struct zip *za, const char *fname, zip_flags_t flags, const char *password) argument
H A Dzip_name_locate.c48 zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags)
50 return _zip_name_locate(za, fname, flags, &za->error);
57 _zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags, struct zip_error *error)
66 if (fname == NULL) {
86 if (cmp(fname, fn) == 0) {
46 zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags) argument
54 _zip_name_locate(struct zip *za, const char *fname, zip_flags_t flags, struct zip_error *error) argument
H A Dzip_source_file.c46 zip_source_file(struct zip *za, const char *fname, zip_uint64_t start,
52 if (fname == NULL || len < -1) {
57 return _zip_source_file_or_p(za, fname, NULL, start, len, 1, NULL);
44 zip_source_file(struct zip *za, const char *fname, zip_uint64_t start, zip_int64_t len) argument
H A Dzip_stat.c43 zip_stat(struct zip *za, const char *fname, zip_flags_t flags, struct zip_stat *st)
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
41 zip_stat(struct zip *za, const char *fname, zip_flags_t flags, struct zip_stat *st) argument
H A Dzip_source_filep.c46 char *fname; /* name of file to copy from */
82 _zip_source_file_or_p(struct zip *za, const char *fname, FILE *file,
89 if (file == NULL && fname == NULL) {
99 f->fname = NULL;
100 if (fname) {
101 if ((f->fname=strdup(fname)) == NULL) {
110 f->closep = f->fname ? 1 : closep;
140 if (z->fname) {
141 if ((z->f=fopen(z->fname, "r
45 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, zip_uint64_t start, zip_int64_t len, int closep, const struct zip_stat *st) argument
[all...]
/PHP_TRUNK/sapi/isapi/stresstest/
H A Dstresstest.cpp644 CString fname; local
645 fname.Format("%08X.out", context.tid);
647 context.out = CreateFile(fname, GENERIC_WRITE, FILE_SHARE_READ, NULL, CREATE_ALWAYS, FILE_FLAG_WRITE_THROUGH, NULL);
649 printf("failed to open output file %s\n", fname);
715 ok = CompareFiles(fname, matchdata);
718 DeleteFile(fname);
/PHP_TRUNK/Zend/
H A Dzend_exceptions.c588 zval fname; local
595 ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1);
605 ZVAL_COPY_VALUE(&fci.function_name, &fname);
641 zval_dtor(&fname);
H A Dzend_execute.c564 const char *fname = zf->common.function_name->val; local
584 zend_error(error_type, "Argument %d passed to %s%s%s() must %s%s, %s%s given, called in %s on line %d and defined", arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind, ptr->func->op_array.filename->val, ptr->opline->lineno);
586 zend_error(error_type, "Argument %d passed to %s%s%s() must %s%s, %s%s given", arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind);
593 zend_error(error_type, "Argument %d passed to %s%s%s() must %s%s, %s%s given", arg_num, fclass, fsep, fname, need_msg, need_kind, given_msg, given_kind);
/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/iconv/
H A Diconv.c211 static php_iconv_err_t _php_iconv_mime_encode(smart_str *pretval, const char *fname, size_t fname_nbytes, const char *fval, size_t fval_nbytes, size_t max_line_len, const char *lfchars, php_iconv_enc_scheme_t enc_scheme, const char *out_charset, const char *enc);
1123 static php_iconv_err_t _php_iconv_mime_encode(smart_str *pretval, const char *fname, size_t fname_nbytes, const char *fval, size_t fval_nbytes, size_t max_line_len, const char *lfchars, php_iconv_enc_scheme_t enc_scheme, const char *out_charset, const char *enc) argument
1197 _php_iconv_appendl(pretval, fname, fname_nbytes, cd_pl);
/PHP_TRUNK/ext/json/
H A Djson.c562 zval retval, fname; local
577 ZVAL_STRING(&fname, "jsonSerialize");
579 if (FAILURE == call_user_function_ex(EG(function_table), val, &fname, &retval, 0, NULL, 1, NULL) || Z_TYPE(retval) == IS_UNDEF) {
582 zval_ptr_dtor(&fname);
589 zval_ptr_dtor(&fname);
604 zval_ptr_dtor(&fname);
/PHP_TRUNK/ext/mssql/
H A Dphp_mssql.c1216 char *fname = (char *)dbcolname(mssql_ptr->link,i+1); local
1218 if (*fname) {
1219 result->fields[i].name = estrdup(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/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
124 fname = (char*)zend_get_executed_filename();
126 if (strncasecmp(fname, "phar://", 7)) {
129 fname_len = strlen(fname);
130 if (SUCCESS == phar_split_fname(fname, fname_le
245 char *arch, *entry, *fname; local
341 char *arch, *entry, *fname; local
612 char *arch, *entry, *fname; local
906 char *arch, *entry, *fname; local
973 char *arch, *entry, *fname; local
[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.c255 char *path, *fname, *arch, *entry, *ret, *test; local
269 fname = (char*)zend_get_executed_filename();
270 fname_len = strlen(fname);
272 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))) {
279 if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fname), &arch, &arch_len, &entry, &entry_len, 1, 0)) {
353 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
372 if (FAILURE == phar_get_archive(&phar, fname, fname_le
514 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
961 phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error) argument
1479 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
1980 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...]
/PHP_TRUNK/ext/standard/
H A Dvar.c832 zval fname; local
862 ZVAL_STRINGL(&fname, "__sleep", sizeof("__sleep") - 1);
864 res = call_user_function_ex(CG(function_table), struc, &fname, &retval, 0, 0, 1, NULL);
866 zval_dtor(&fname);
H A Dvar_unserializer.c451 zval fname; local
465 ZVAL_STRINGL(&fname, "__wakeup", sizeof("__wakeup") - 1);
467 call_user_function_ex(CG(function_table), rval, &fname, &retval, 0, 0, 1, NULL); local
469 zval_dtor(&fname);
/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/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);

Completed in 47 milliseconds

12