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

12

/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/spl/internal/
H A Dsplfileobject.inc24 private $fname;
49 $this->fname = $file_name;
321 throw new RuntimeException("Cannot read from file " . $this->fname);
351 throw new RuntimeException("Cannot read from file " . $this->fname);
/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/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/phar/
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
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 TSRMLS_DC) argument
1980 char *fname; local
[all...]
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)) {
120 char *arch, *entry, *fname; local
124 fname = (char*)zend_get_executed_filename(TSRMLS_C);
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 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 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
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 TSRMLS_DC) /* {{{ */ argument
334 phar_file_action(phar, info, "text/html", PHAR_MIME_PHP, f404, f404_len, fname, NULL, NULL, 0 TSRMLS_CC);
353 static void phar_postprocess_ru_web(char *fname, int fname_len, char **entry, int *entry_len, char **ru, int *ru_len TSRMLS_DC) /* {{{ */ argument
360 pphar = zend_hash_str_find_ptr(&(PHAR_GLOBALS->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
550 char *fname, *path_info, *mime_type = NULL, *entry, *pt; local
973 char *fname, *alias = NULL, *error; local
1050 char *fname; local
1296 char *fname, *error, *zname, *arch, *entry; local
1401 char *fname, *error = NULL, *base = p_obj->b, *opened, *save = NULL, *temp = NULL; local
2561 char *fname; local
3481 char *fname; local
3518 char *fname, *error; local
3662 char *fname, *cont_str = NULL; local
3701 char *fname, *error; local
3776 char *fname, *localname = NULL; local
4335 char *fname, *arch, *entry, *error; 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);
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 TSRMLS_DC) argument
[all...]
H A Dphar_internal.h289 char *fname; member in struct:_phar_archive_data
291 /* for phar_detect_fname_ext, this stores the location of the file extension within fname */
531 memcpy(tmp, entry->phar->fname, entry->phar->fname_len);
544 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);
545 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);
546 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);
549 int phar_get_archive(phar_archive_data **archive, char *fname, int fname_len, char *alias, int alias_len, char **error TSRMLS_DC);
550 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);
551 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);
578 int phar_is_tar(char *buf, char *fname);
[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_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) {
299 if (zend_hash_str_del(&(PHAR_GLOBALS->phar_fname_map), phar->fname, phar->fname_len) != SUCCESS) {
492 spprintf(error, 0, msg, fname);\
535 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
546 unixfname = estrndup(fname, fname_len);
551 && !strncmp(unixfname, phar->fname, fname_le
665 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 TSRMLS_DC) argument
1247 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
1324 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
1478 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
1569 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
1741 phar_analyze_path(const char *fname, const char *ext, int ext_len, int for_create TSRMLS_DC) argument
1843 phar_check_str(const char *fname, const char *ext_str, int ext_len, int executable, int for_create TSRMLS_DC) argument
2255 char *fname; local
[all...]
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_persist.c292 #define CPH_ME(fname, arginfo) PHP_ME(com_persist, fname, arginfo, ZEND_ACC_PUBLIC)
293 #define CPH_SME(fname, arginfo) PHP_ME(com_persist, fname, arginfo, ZEND_ACC_ALLOW_STATIC|ZEND_ACC_PUBLIC)
294 #define CPH_METHOD(fname) static PHP_METHOD(com_persist, fname)
/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/sapi/phpdbg/
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/wddx/
H A Dwddx.c442 zval *ent, fname, *varname; local
450 ZVAL_STRING(&fname, "__sleep");
455 if (call_user_function_ex(CG(function_table), obj, &fname, &retval, 0, 0, 1, NULL TSRMLS_CC) == SUCCESS) {
524 zval_ptr_dtor(&fname);
897 zval fname, retval; local
899 ZVAL_STRING(&fname, "__wakeup");
901 call_user_function_ex(NULL, &ent1->data, &fname, &retval, 0, 0, 0, NULL TSRMLS_CC);
903 zval_ptr_dtor(&fname);
/PHP_TRUNK/ext/json/
H A Djson.c556 zval retval, fname; local
571 ZVAL_STRING(&fname, "jsonSerialize");
573 if (FAILURE == call_user_function_ex(EG(function_table), val, &fname, &retval, 0, NULL, 1, NULL TSRMLS_CC) || Z_TYPE(retval) == IS_UNDEF) {
576 zval_ptr_dtor(&fname);
583 zval_ptr_dtor(&fname);
598 zval_ptr_dtor(&fname);

Completed in 46 milliseconds

12