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

12

/PHP_5_4/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_4/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_4/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_4/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 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
1840 phar_check_str(const char *fname, const char *ext_str, int ext_len, int executable, int for_create TSRMLS_DC) argument
2325 char *fname; local
3439 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 Dphar_object.c59 static void phar_mung_server_vars(char *fname, char *entry, int entry_len, char *basename, int request_uri_len TSRMLS_DC) /* {{{ */ argument
93 Z_STRLEN_PP(stuff) = spprintf(&(Z_STRVAL_PP(stuff)), 4096, "phar://%s%s", fname, entry);
154 Z_STRLEN_PP(stuff) = spprintf(&(Z_STRVAL_PP(stuff)), 4096, "phar://%s%s", fname, entry);
348 static void phar_do_404(phar_archive_data *phar, char *fname, int fname_len, char *f404, int f404_len, char *entry, int entry_len TSRMLS_DC) /* {{{ */ argument
357 phar_file_action(phar, info, "text/html", PHAR_MIME_PHP, f404, f404_len, fname, NULL, NULL, 0 TSRMLS_CC);
376 static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len TSRMLS_DC) /* {{{ */ argument
383 zend_hash_find(&(PHAR_GLOBALS->phar_fname_map), fname, fname_len, (void **) &pphar);
386 zend_hash_find(&cached_phars, fname, fname_len, (void **) &pphar);
443 char *fname, *arch, *entry; local
451 fname
477 char *fname, *arch = NULL, *entry = NULL, *path, *actual; local
569 char *fname, *path_info, *mime_type = NULL, *entry, *pt; local
1016 char *fname, *alias = NULL, *error; local
1093 char *fname; local
1341 char *fname, *error, *zname, *arch, *entry; local
1445 char *fname, *error = NULL, *base = p_obj->b, *opened, *save = NULL, *temp = NULL; local
2691 char *fname; local
3619 char *fname; local
3656 char *fname, *error; local
3800 char *fname, *cont_str = NULL; local
3839 char *fname, *error; local
3914 char *fname, *localname = NULL; local
4492 char *fname, *arch, *entry, *error; 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.c260 char *path, *fname, *arch, *entry, *ret, *test; local
274 fname = (char*)zend_get_executed_filename(TSRMLS_C);
275 fname_len = strlen(fname);
277 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))) {
284 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)) {
354 char *fname, *arch, *entry, *ret, *test;
366 fname
575 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
736 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
1211 phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC) argument
1793 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
2302 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_4/ext/spl/
H A Dspl_array.c1433 static void spl_array_method(INTERNAL_FUNCTION_PARAMETERS, char *fname, int fname_len, int use_arg) /* {{{ */ argument
1446 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 1, tmp, NULL TSRMLS_CC);
1456 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, arg? 2 : 1, tmp, arg TSRMLS_CC);
1466 zend_call_method(NULL, NULL, NULL, fname, fname_len, &retval_ptr, 2, tmp, arg TSRMLS_CC);
1476 #define SPL_ARRAY_METHOD(cname, fname, use_arg) \
1477 SPL_METHOD(cname, fname) \
1479 spl_array_method(INTERNAL_FUNCTION_PARAM_PASSTHRU, #fname, sizeof(#fname)-1, use_arg); \
H A Dspl_directory.c923 char *fname = NULL; local
935 fname = intern->file_name + path_len + 1;
938 fname = intern->file_name;
942 php_basename(fname, flen, NULL, 0, &fname, &flen TSRMLS_CC);
944 p = zend_memrchr(fname, '.', flen);
946 idx = p - fname;
947 RETVAL_STRINGL(fname + idx + 1, flen - idx - 1, 1);
948 efree(fname);
951 if (fname) {
964 char *fname = NULL; local
995 char *fname, *suffix = 0; local
1024 char *suffix = 0, *fname; local
[all...]
/PHP_5_4/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_5_4/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_4/Zend/
H A Dzend_API.h36 const char *fname; member in struct:_zend_function_entry
H A Dzend_vm_def.h2805 zval *fname = GET_OP1_ZVAL_PTR(BP_VAR_R); variable
2811 } else if (UNEXPECTED(zend_hash_quick_find(EG(function_table), Z_STRVAL_P(fname), Z_STRLEN_P(fname)+1, Z_HASH_P(fname), (void **) &EX(function_state).function)==FAILURE)) {
2813 zend_error_noreturn(E_ERROR, "Call to undefined function %s()", fname->value.str.val);
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_5_4/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_4/ext/json/
H A Djson.c551 zval *retval = NULL, fname; local
566 ZVAL_STRING(&fname, "jsonSerialize", 0);
568 if (FAILURE == call_user_function_ex(EG(function_table), &val, &fname, &retval, 0, NULL, 1, NULL TSRMLS_CC) || !retval) {

Completed in 46 milliseconds

12