Searched defs:fname (Results 1 - 25 of 38) 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/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/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/ext/curl/
H A Dcurl_file.c34 char *fname = NULL, *mime = NULL, *postname = NULL; local
38 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "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 TSRMLS_CC);
/PHP_TRUNK/ext/mssql/
H A Dphp_mssql.c1219 char *fname = (char *)dbcolname(mssql_ptr->link,i+1); local
1221 if (*fname) {
1222 result->fields[i].name = estrdup(fname);
/PHP_TRUNK/ext/mysqlnd/
H A Dmysqlnd_auth.c489 const char * fname = (net_options->sha256_server_public_key && net_options->sha256_server_public_key[0] != '\0')? local
497 if (!fname || fname[0] == '\0') {
547 DBG_INF_FMT("Key in a file. [%s]", fname);
548 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(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 = (char*)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 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.c255 char *path, *fname, *arch, *entry, *ret, *test; local
269 fname = (char*)zend_get_executed_filename(TSRMLS_C);
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 TSRMLS_CC)) {
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 TSRMLS_DC) /* {{{ */ 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 TSRMLS_DC) argument
961 phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) argument
1515 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
2020 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
720 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_TRUNK/ext/wddx/
H A Dwddx.c456 zval **ent, *fname, **varname; local
464 MAKE_STD_ZVAL(fname);
465 ZVAL_STRING(fname, "__sleep", 1);
471 if (call_user_function_ex(CG(function_table), &obj, fname, &retval, 0, 0, 1, NULL TSRMLS_CC) == SUCCESS) {
542 zval_dtor(fname);
543 FREE_ZVAL(fname);
946 zval *fname, *retval = NULL; local
948 MAKE_STD_ZVAL(fname);
949 ZVAL_STRING(fname, "__wakeup", 1);
951 call_user_function_ex(NULL, &ent1->data, fname,
[all...]
/PHP_TRUNK/Zend/
H A Dzend_exceptions.c638 zval fname; local
645 ZVAL_STRINGL(&fname, "gettraceasstring", sizeof("gettraceasstring")-1, 1);
659 fci.function_name = &fname;
697 zval_dtor(&fname);
/PHP_TRUNK/ext/json/
H A Djson.c562 zval *retval = NULL, fname; local
577 ZVAL_STRING(&fname, "jsonSerialize", 0);
579 if (FAILURE == call_user_function_ex(EG(function_table), &val, &fname, &retval, 0, NULL, 1, NULL TSRMLS_CC) || !retval) {
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_bp.c811 const char *fname; local
826 fname = ops->function_name;
828 if (!fname) {
829 fname = "main";
832 if (zend_hash_find(&PHPDBG_G(bp)[PHPDBG_BREAK_SYM], fname, strlen(fname), (void**)&brake) == SUCCESS) {
H A Dphpdbg_info.c63 char *fname; local
69 while (zend_hash_get_current_key_ex(&EG(included_files), &fname,
71 phpdbg_writeln("File: %s", fname);
H A Dphpdbg_prompt.c86 zval fname, *fretval; local
89 ZVAL_STRINGL(&fname, name->str, name->len, 1);
95 fci.function_name = &fname;
180 zval_dtor(&fname);
531 zval fname, local
549 ZVAL_STRINGL(&fname, "__tostring", sizeof("__tostring")-1, 1);
552 fci.function_name = &fname;
573 zval_dtor(&fname);
H A Dphpdbg_utils.c170 PHPDBG_API const zend_function *phpdbg_get_function(const char *fname, const char *cname TSRMLS_DC) /* {{{ */ argument
173 size_t fname_len = strlen(fname);
174 char *lcname = zend_str_tolower_dup(fname, fname_len);
/PHP_TRUNK/ext/standard/
H A Dvar.c766 zval fname; local
800 INIT_PZVAL(&fname);
801 ZVAL_STRINGL(&fname, "__sleep", sizeof("__sleep") - 1, 0);
803 res = call_user_function_ex(CG(function_table), &struc, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC);
H A Dvar_unserializer.c417 zval fname; local
429 INIT_PZVAL(&fname);
430 ZVAL_STRINGL(&fname, "__wakeup", sizeof("__wakeup") - 1, 0);
432 call_user_function_ex(CG(function_table), rval, &fname, &retval_ptr, 0, 0, 1, NULL TSRMLS_CC); local
/PHP_TRUNK/ext/spl/
H A Dspl_array.c1449 static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, int fname_len, int use_arg) /* {{{ */ argument
1462 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 1, tmp, NULL TSRMLS_CC);
1472 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, arg? 2 : 1, tmp, arg TSRMLS_CC);
1482 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 2, tmp, arg TSRMLS_CC);
1492 #define SPL_ARRAY_METHOD(cname, fname, use_arg) \
1493 SPL_METHOD(cname, fname) \
1495 spl_array_method(INTERNAL_FUNCTION_PARAM_PASSTHRU, #fname, sizeof(#fname)-1, use_arg); \

Completed in 65 milliseconds

12