Searched refs:fname (Results 1 - 25 of 52) sorted by relevance

123

/PHP_TRUNK/ext/phar/tests/cache_list/files/
H A Dphar_test.inc64 file_put_contents($fname, $file);
67 $fp = gzopen($fname, 'w');
73 $fp = bzopen($fname, 'w');
/PHP_TRUNK/ext/soap/tests/schema/
H A Dtest_schema.inc53 $fname = tempnam ("./", "wsdl");
54 $f = fopen($fname,"w");
58 $x = new SoapClient($fname, array("trace"=>1,"exceptions"=>0,"features"=>$features));
59 $y = new SoapServer($fname, array("features"=>$features));
61 unlink($fname);
/PHP_TRUNK/ext/phar/tests/files/
H A Dphar_test.inc64 file_put_contents($fname, $file);
67 $fp = gzopen($fname, 'w');
73 $fp = bzopen($fname, 'w');
/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.c39 zip_fopen(zip_t *za, const char *fname, zip_flags_t flags) argument
43 if ((idx=zip_name_locate(za, fname, flags)) < 0)
H A Dzip_fopen_encrypted.c39 zip_fopen_encrypted(zip_t *za, const char *fname, zip_flags_t flags, const char *password) argument
43 if ((idx=zip_name_locate(za, fname, flags)) < 0)
H A Dzip_name_locate.c44 zip_name_locate(zip_t *za, const char *fname, zip_flags_t flags) argument
46 return _zip_name_locate(za, fname, flags, &za->error);
51 _zip_name_locate(zip_t *za, const char *fname, zip_flags_t flags, zip_error_t *error) argument
60 if (fname == NULL) {
80 if (cmp(fname, fn) == 0) {
H A Dzip_source_file.c42 zip_source_file(zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) argument
47 return zip_source_file_create(fname, start, len, &za->error);
52 zip_source_file_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error) argument
54 if (fname == NULL || length < -1) {
59 return _zip_source_file_or_p(fname, NULL, start, length, NULL, error);
H A Dzip_source_win32a.c45 static int _win32_remove_a(const void *fname);
56 zip_source_win32a(zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) argument
61 return zip_source_win32a_create(fname, start, len, &za->error);
66 zip_source_win32a_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error) argument
68 if (fname == NULL || length < -1) {
73 return _zip_source_win32_handle_or_name(fname, INVALID_HANDLE_VALUE, start, length, 1, NULL, &win32_ops_a, error);
87 return CreateFileA(ctx->fname, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
96 len = strlen((const char *)ctx->fname) + 10;
103 if (sprintf((char *)*temp, "%s.%08x", (const char *)ctx->fname, value) != len - 1) {
114 if (!MoveFileExA(ctx->tmpname, ctx->fname, MOVEFILE_REPLACE_EXISTIN
121 _win32_remove_a(const void *fname) argument
[all...]
H A Dzip_source_win32handle.c74 _zip_source_win32_handle_or_name(const void *fname, HANDLE h, zip_uint64_t start, zip_int64_t len, int closep, const zip_stat_t *st, _zip_source_win32_file_ops_t *ops, zip_error_t *error) argument
79 if (h == INVALID_HANDLE_VALUE && fname == NULL) {
89 ctx->fname = NULL;
90 if (fname) {
91 if ((ctx->fname = ops->op_strdup(fname)) == NULL) {
102 ctx->closep = ctx->fname ? 1 : closep;
118 if (ctx->fname) {
134 free(ctx->fname);
156 if (ctx->fname
[all...]
H A Dzip_source_win32utf8.c43 zip_source_file(zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) argument
48 return zip_source_file_create(fname, start, len, &za->error);
53 zip_source_file_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error) argument
59 if (fname == NULL || length < -1) {
64 /* Convert fname from UTF-8 to Windows-friendly UTF-16. */
65 size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, fname, -1, NULL, 0);
74 MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, fname, -1, wfname, size);
H A Dzip_source_win32w.c45 static int _win32_remove_w(const void *fname);
56 zip_source_win32w(zip_t *za, const wchar_t *fname, zip_uint64_t start, zip_int64_t len) argument
61 return zip_source_win32w_create(fname, start, len, &za->error);
66 zip_source_win32w_create(const wchar_t *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error) argument
68 if (fname == NULL || length < -1) {
73 return _zip_source_win32_handle_or_name(fname, INVALID_HANDLE_VALUE, start, length, 1, NULL, &win32_ops_w, error);
87 return CreateFileW(ctx->fname, GENERIC_READ, FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING, FILE_ATTRIBUTE_NORMAL, NULL);
96 len = wcslen((const wchar_t *)ctx->fname) + 10;
103 if (swprintf((wchar_t *)*temp, len, L"%s.%08x", (const wchar_t *)ctx->fname, value) != len - 1) {
114 if (!MoveFileExW(ctx->tmpname, ctx->fname, MOVEFILE_REPLACE_EXISTIN
121 _win32_remove_w(const void *fname) argument
[all...]
H A Dzip_stat.c39 zip_stat(zip_t *za, const char *fname, zip_flags_t flags, zip_stat_t *st) argument
43 if ((idx=zip_name_locate(za, fname, flags)) < 0)
H A Dzipwin32.h51 void *fname; /* name of file to read from - ANSI (char *) or Unicode (wchar_t *) */ member in struct:_zip_source_win32_read_file
H A Dzip_source_filep.c69 char *fname; /* name of file to read from */ member in struct:read_file
110 _zip_source_file_or_p(const char *fname, FILE *file, zip_uint64_t start, zip_int64_t len, const zip_stat_t *st, zip_error_t *error) argument
115 if (file == NULL && fname == NULL) {
125 ctx->fname = NULL;
126 if (fname) {
127 if ((ctx->fname=strdup(fname)) == NULL) {
151 if (ctx->fname) {
154 if (stat(ctx->fname, &sb) < 0 || S_ISREG(sb.st_mode)) {
163 free(ctx->fname);
[all...]
/PHP_TRUNK/ext/standard/tests/general_functions/
H A Dproc_open_pipes.inc5 $fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "proc_open_pipes_sleep.php";
7 if (!file_exists($fname)) {
8 file_put_contents($fname, "<?php\nsleep(1);\n");
11 return $fname;
16 $fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "proc_open_pipes_sleep.php";
18 if (file_exists($fname)) {
19 unlink($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);
/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
615 char *arch, *entry, *fname; local
909 char *arch, *entry, *fname; local
976 char *arch, *entry, *fname; local
[all...]
H A Dtar.c100 int phar_is_tar(char *buf, char *fname) /* {{{ */ argument
116 if ((bname = strrchr(fname, PHP_DIR_SEPARATOR))) {
117 fname = bname;
119 if (!ret && (bname = strstr(fname, ".tar")) && (bname[4] == '\0' || bname[4] == '.')) {
127 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
130 int ret = phar_create_or_parse_filename(fname, fname_len, alias, alias_len, is_data, options, &phar, error);
155 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);
198 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
219 spprintf(error, 4096, "phar error: \"%s\" is not a tar file or is truncated", fname);
272 spprintf(error, 4096, "phar error: tar-based phar \"%s\" has signature that is larger than 511 bytes, cannot process", 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.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
652 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
1242 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
1319 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
1474 phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error) argument
1565 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
1737 phar_analyze_path(const char *fname, const char *ext, int ext_len, int for_create) argument
1839 phar_check_str(const char *fname, const char *ext_str, int ext_len, int executable, int for_create) argument
2257 char *fname; local
[all...]
H A Dphar_internal.h287 char *fname; member in struct:_phar_archive_data
289 /* for phar_detect_fname_ext, this stores the location of the file extension within fname */
532 memcpy(tmp, entry->phar->fname, len1);
548 int phar_open_from_filename(char *fname, int fname_len, char *alias, int alias_len, int options, phar_archive_data** pphar, char **error);
549 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);
550 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);
553 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error);
554 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);
555 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);
582 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) /* {{{ */ 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
982 char *fname, *alias = NULL, *error; local
1059 char *fname; local
1305 char *fname, *error, *zname, *arch, *entry; local
1410 char *fname, *error = NULL, *base = p_obj->b, *save = NULL, *temp = NULL; local
2577 char *fname; local
3497 char *fname; local
3534 char *fname, *error; local
3678 char *fname, *cont_str = NULL; local
3717 char *fname, *error; local
3792 char *fname, *localname = NULL; local
4391 char *fname, *arch, *entry, *error; local
[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(), "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);

Completed in 272 milliseconds

123