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

12

/PHP_5_3/ext/zip/lib/
H A Dzip_fopen.c43 zip_fopen(struct zip *za, const char *fname, int flags)
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
41 zip_fopen(struct zip *za, const char *fname, int flags) argument
H A Dzip_fopen_encrypted.c43 zip_fopen_encrypted(struct zip *za, const char *fname, int flags,
48 if ((idx=zip_name_locate(za, fname, flags)) < 0)
41 zip_fopen_encrypted(struct zip *za, const char *fname, int flags, const char *password) argument
H A Dzip_name_locate.c45 zip_name_locate(struct zip *za, const char *fname, int flags)
47 return _zip_name_locate(za, fname, flags, &za->error);
54 _zip_name_locate(struct zip *za, const char *fname, int flags,
64 if (fname == NULL) {
93 if (cmp(fname, fn) == 0)
43 zip_name_locate(struct zip *za, const char *fname, int flags) argument
51 _zip_name_locate(struct zip *za, const char *fname, int 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_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;
139 if (z->fname) {
140 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...]
H A Dzip_stat.c43 zip_stat(struct zip *za, const char *fname, int flags, struct zip_stat *st)
47 if ((idx=zip_name_locate(za, fname, flags)) < 0)
41 zip_stat(struct zip *za, const char *fname, int flags, struct zip_stat *st) argument
/PHP_5_3/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_5_3/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_5_3/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, unsigned int max_line_len, const char *lfchars, php_iconv_enc_scheme_t enc_scheme, const char *out_charset, const char *enc);
989 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, unsigned int max_line_len, const char *lfchars, php_iconv_enc_scheme_t enc_scheme, const char *out_charset, const char *enc) argument
1064 _php_iconv_appendl(pretval, fname, fname_nbytes, cd_pl);
/PHP_5_3/ext/mssql/
H A Dphp_mssql.c1214 char *fname = (char *)dbcolname(mssql_ptr->link,i+1); local
1216 if (*fname) {
1217 result->fields[i].name = estrdup(fname);
/PHP_5_3/ext/reflection/
H A Dphp_reflection.c1080 if (module->functions && module->functions->fname) {
1087 while (func->fname) {
1088 int fname_len = strlen(func->fname);
1089 char *lc_name = zend_str_tolower_dup(func->fname, fname_len);
1092 php_error_docref(NULL TSRMLS_CC, E_WARNING, "Internal error: Cannot find extension function %s in global function table", func->fname);
1323 zval fname; local
1383 ZVAL_STRINGL(&fname, "reflection::export", sizeof("reflection::export") - 1, 0);
1385 fci.function_name = &fname;
1423 zval *object, fname, *retval_ptr; local
1432 ZVAL_STRINGL(&fname, "__tostrin
[all...]
/PHP_5_3/ext/standard/
H A Dvar.c751 zval fname; local
785 INIT_PZVAL(&fname);
786 ZVAL_STRINGL(&fname, "__sleep", sizeof("__sleep") - 1, 0);
787 res = call_user_function_ex(CG(function_table), &struc, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC);
H A Dvar_unserializer.c370 zval fname; local
378 INIT_PZVAL(&fname);
379 ZVAL_STRINGL(&fname, "__wakeup", sizeof("__wakeup") - 1, 0);
380 call_user_function_ex(CG(function_table), rval, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC); local
/PHP_5_3/ext/wddx/
H A Dwddx.c458 zval **ent, *fname, **varname; local
466 MAKE_STD_ZVAL(fname);
467 ZVAL_STRING(fname, "__sleep", 1);
473 if (call_user_function_ex(CG(function_table), &obj, fname, &retval, 0, 0, 1, NULL TSRMLS_CC) == SUCCESS) {
544 zval_dtor(fname);
545 FREE_ZVAL(fname);
948 zval *fname, *retval = NULL; local
950 MAKE_STD_ZVAL(fname);
951 ZVAL_STRING(fname, "__wakeup", 1);
953 call_user_function_ex(NULL, &ent1->data, fname,
[all...]
/PHP_5_3/ext/phar/
H A Dfunc_interceptors.c46 char *arch, *entry, *fname; local
48 fname = zend_get_executed_filename(TSRMLS_C);
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 TSRMLS_CC)) {
121 char *arch, *entry, *fname; local
125 fname = zend_get_executed_filename(TSRMLS_C);
127 if (strncasecmp(fname, "phar://", 7)) {
130 fname_len = strlen(fname);
131 if (SUCCESS == phar_split_fname(fname, fname_le
251 char *arch, *entry, *fname; local
347 char *arch, *entry, *fname; local
618 char *arch, *entry, *fname; local
912 char *arch, *entry, *fname; local
979 char *arch, *entry, *fname; local
[all...]
H A Dphar.c211 if (phar->alias && phar->alias != phar->fname) {
216 if (phar->fname) {
217 pefree(phar->fname, phar->is_persistent);
218 phar->fname = NULL;
281 || zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) {
302 if (zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) {
488 spprintf(error, 0, msg, fname);\
531 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 TSRMLS_DC) /* {{{ */ argument
542 unixfname = estrndup(fname, fname_len);
547 && !strncmp(unixfname, phar->fname, fname_le
662 phar_parse_pharfile(php_stream *fp, char *fname, int fname_len, char *alias, int alias_len, long halt_offset, phar_archive_data** pphar, php_uint32 compression, char **error TSRMLS_DC) 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 TSRMLS_DC) 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 TSRMLS_DC) argument
1475 phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC) argument
1566 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 TSRMLS_DC) argument
1738 phar_analyze_path(const char *fname, const char *ext, int ext_len, int for_create TSRMLS_DC) argument
1846 phar_check_str(const char *fname, const char *ext_str, int ext_len, int executable, int for_create TSRMLS_DC) argument
2331 char *fname; local
3422 char *fname; local
[all...]
H A Dphar_internal.h305 char *fname; member in struct:_phar_archive_data
307 /* for phar_detect_fname_ext, this stores the location of the file extension within fname */
623 memcpy(tmp, entry->phar->fname, entry->phar->fname_len);
636 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error TSRMLS_DC);
637 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 TSRMLS_DC);
638 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 TSRMLS_DC);
641 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC);
642 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 TSRMLS_DC);
643 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 TSRMLS_DC);
670 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 TSRMLS_DC) /* {{{ */ argument
127 int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error TSRMLS_CC);
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 TSRMLS_DC) /* {{{ */ 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.c261 char *path, *fname, *arch, *entry, *ret, *test; local
275 fname = zend_get_executed_filename(TSRMLS_C);
276 fname_len = strlen(fname);
278 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))) {
285 if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fname), &arch, &arch_len, &entry, &entry_len, 1, 0 TSRMLS_CC)) {
355 char *fname, *arch, *entry, *ret, *test;
367 fname
576 phar_get_entry_data(phar_entry_data **ret, char *fname, int fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRMLS_DC) argument
737 phar_get_or_create_entry_data(char *fname, int fname_len, char *path, int path_len, char *mode, char allow_dir, char **error, int security TSRMLS_DC) argument
1212 phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) argument
1792 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 TSRMLS_DC) argument
2301 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 TSRMLS_DC) /* {{{ */ 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);
265 spprintf(error, 4096, "phar error: end of central directory not found in zip-based phar \"%s\"", fname);
270 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent);
272 phar_unixify_path_separators(mydata->fname, fname_le
730 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 TSRMLS_DC) argument
[all...]
/PHP_5_3/ext/spl/
H A Dspl_directory.c913 char *fname = NULL; local
925 fname = intern->file_name + path_len + 1;
928 fname = intern->file_name;
932 php_basename(fname, flen, NULL, 0, &fname, &flen TSRMLS_CC);
934 p = zend_memrchr(fname, '.', flen);
936 idx = p - fname;
937 RETVAL_STRINGL(fname + idx + 1, flen - idx - 1, 1);
938 efree(fname);
941 if (fname) {
954 char *fname = NULL; local
985 char *fname, *suffix = 0; local
1014 char *suffix = 0, *fname; local
[all...]
H A Dspl_array.c1399 static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, int fname_len, int use_arg) /* {{{ */ argument
1418 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 2, tmp, arg TSRMLS_CC);
1422 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 1, tmp, NULL TSRMLS_CC);
1432 #define SPL_ARRAY_METHOD(cname, fname, use_arg) \
1433 SPL_METHOD(cname, fname) \
1435 spl_array_method(INTERNAL_FUNCTION_PARAM_PASSTHRU, #fname, sizeof(#fname)-1, use_arg); \
/PHP_5_3/Zend/
H A Dzend_execute.c457 char *fname = zf->common.function_name; local
470 zend_error(E_RECOVERABLE_ERROR, "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->op_array->filename, ptr->opline->lineno);
472 zend_error(E_RECOVERABLE_ERROR, "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);
H A Dzend_exceptions.c570 zval fname; local
577 ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 1);
591 fci.function_name = &fname;
628 zval_dtor(&fname);
H A Dzend_vm_def.h2437 zval *fname = GET_OP1_ZVAL_PTR(BP_VAR_R); variable
2441 if (zend_hash_quick_find(EG(function_table), fname->value.str.val, fname->value.str.len+1, Z_LVAL(opline->op2.u.constant), (void **) &EX(function_state).function)==FAILURE) {
2442 zend_error_noreturn(E_ERROR, "Call to undefined function %s()", fname->value.str.val);

Completed in 64 milliseconds

12