Home
last modified time | relevance | path

Searched refs:fname (Results 1 – 25 of 349) sorted by relevance

12345678910>>...14

/PHP-5.3/ext/zip/tests/
H A Dbug53885.phpt9 $fname = dirname(__FILE__)."/test53885.zip";
10 if(file_exists($fname)) unlink($fname);
11 touch($fname);
13 $nx->open($fname);
20 $fname = dirname(__FILE__)."/test53885.zip";
21 unlink($fname);
/PHP-5.3/ext/phar/tests/tar/
H A Dcreate_new_and_modify.phpt11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar.php';
12 $pname = 'phar://' . $fname;
14 @unlink($fname);
18 $phar = new Phar($fname);
20 $sig1 = md5_file($fname);
27 $phar = new Phar($fname);
28 $sig2 = md5_file($fname);
H A Dtar_gzipU.phpt17 $fname = dirname(__FILE__) . '/tar_gzip.phar';
18 $pname = 'phar://' . $fname;
22 $a = new tarmaker($fname, 'zlib');
35 include $fname;
37 $a = new Phar($fname);
39 copy($fname, $fname2);
H A Dbadchecksum.phpt7 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.tar';
8 $pname = 'phar://' . $fname;
11 $a = new corrupt_tarmaker($fname, 'none');
17 $p = new PharData($fname);
H A Dtar_gzip.phpt17 $fname = dirname(__FILE__) . '/tar_gzip.phar';
18 $pname = 'phar://' . $fname;
22 $a = new tarmaker($fname, 'zlib');
35 include $fname;
37 $a = new Phar($fname);
39 copy($fname, $fname2);
/PHP-5.3/ext/phar/tests/zip/
H A Dcreate_new_and_modify.phpt11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip.php';
12 $pname = 'phar://' . $fname;
14 @unlink($fname);
18 $phar = new Phar($fname);
20 $sig1 = md5_file($fname);
27 $phar = new Phar($fname);
28 $sig2 = md5_file($fname);
/PHP-5.3/ext/zip/lib/
H A Dzip_source_filep.c45 char *fname; /* name of file to copy from */ member
86 if (file == NULL && fname == NULL) { in _zip_source_file_or_p()
96 f->fname = NULL; in _zip_source_file_or_p()
97 if (fname) { in _zip_source_file_or_p()
98 if ((f->fname=strdup(fname)) == NULL) { in _zip_source_file_or_p()
107 f->closep = f->fname ? 1 : closep; in _zip_source_file_or_p()
135 if (z->fname) { in read_file()
136 if ((z->f=fopen(z->fname, "rb")) == NULL) { in read_file()
182 if (z->fname) { in read_file()
203 err = stat(z->fname, &fst); in read_file()
[all …]
H A Dzip_name_locate.c43 zip_name_locate(struct zip *za, const char *fname, int flags) in zip_name_locate() argument
45 return _zip_name_locate(za, fname, flags, &za->error); in zip_name_locate()
51 _zip_name_locate(struct zip *za, const char *fname, int flags, in _zip_name_locate() argument
61 if (fname == NULL) { in _zip_name_locate()
90 if (cmp(fname, fn) == 0) in _zip_name_locate()
H A Dzip_source_file.c44 zip_source_file(struct zip *za, const char *fname, zip_uint64_t start, in zip_source_file() argument
50 if (fname == NULL || len < -1) { in zip_source_file()
55 return _zip_source_file_or_p(za, fname, NULL, start, len, 1, NULL); in zip_source_file()
/PHP-5.3/ext/phar/
H A Dphar_object.c595 fname = estrndup(fname, fname_len);
838 efree(fname);
1091 char *fname; local
1205 if (fname == arch && fname != save_fname) {
1280 efree(fname);
1386 fname = estrndup(phar->fname, phar->fname_len);
1394 efree(fname);
2323 phar->fname = source->fname;
2688 char *fname; local
3616 char *fname; local
[all …]
H A Dtar.c100 int phar_is_tar(char *buf, char *fname) /* {{{ */ in phar_is_tar() argument
116 if (!ret && strstr(fname, ".tar")) { in phar_is_tar()
591 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
593 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile()
597 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile()
600 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile()
602 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile()
605 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile()
632 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len); in phar_parse_tarfile()
647 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), myphar->fname, fname_len); in phar_parse_tarfile()
[all …]
H A Dphar.c216 if (phar->fname) { in PHP_INI_END()
218 phar->fname = NULL; in PHP_INI_END()
554 && !strncmp(fname, phar->fname, fname_len)) || !alias)
1052 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent);
1343 fname = actual;
1380 mydata->fname = expand_filepath(fname, NULL TSRMLS_CC);
1518 fname = actual;
2331 char *fname; local
2343 fname_len = strlen(fname);
2391 fname = actual;
[all …]
H A Dzip.c270 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent); in phar_parse_zipfile()
272 phar_unixify_path_separators(mydata->fname, fname_len); in phar_parse_zipfile()
276 ext = strrchr(mydata->fname, '/'); in phar_parse_zipfile()
279 mydata->ext = memchr(ext, '.', (mydata->fname + fname_len) - ext); in phar_parse_zipfile()
281 mydata->ext = memchr(ext + 1, '.', (mydata->fname + fname_len) - ext - 1); in phar_parse_zipfile()
284 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext; in phar_parse_zipfile()
319 pefree(mydata->fname, mydata->is_persistent); \ in phar_parse_zipfile()
343 pefree(mydata->fname, mydata->is_persistent); \ in phar_parse_zipfile()
670 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len); in phar_parse_zipfile()
682 zend_hash_del(&(PHAR_GLOBALS->phar_fname_map), mydata->fname, fname_len); in phar_parse_zipfile()
[all …]
H A Dutil.c276 fname_len = strlen(fname); in phar_find_in_include_path()
285 …if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fnam… in phar_find_in_include_path()
1261 … if (fname && (fname_len != (*fd_ptr)->fname_len || strncmp(fname, (*fd_ptr)->fname, fname_len))) { in phar_get_archive()
1275 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive()
1290 save = fname; in phar_get_archive()
1293 if (fname && fname_len) { in phar_get_archive()
1375 fname = my_realpath; in phar_get_archive()
2301 char *fname; local
2307 fname = phar->fname;
2308 phar->fname = estrndup(phar->fname, phar->fname_len);
[all …]
/PHP-5.3/ext/fileinfo/libmagic/
H A Dapptype.c50 fname[_MAX_FNAME], ext[_MAX_EXT]; in file_os2_apptype() local
61 _splitpath(filename, drive, dir, fname, ext); in file_os2_apptype()
64 fname, in file_os2_apptype()
88 printf("%s: not an executable file\n", fname); in file_os2_apptype()
90 printf("%s: not found\n", fname); in file_os2_apptype()
92 printf("%s: access denied\n", fname); in file_os2_apptype()
94 printf("%s: error code = %lu\n", fname, rc); in file_os2_apptype()
/PHP-5.3/ext/phar/tests/
H A Dtest_unset.phpt9 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
12 if (file_exists($fname)) unlink($fname);
15 $phar = new Phar($fname); // no entries, never flushed
28 $phar = new Phar($fname);
31 var_dump(file_exists($fname));
H A Dcreate_new_and_modify.phpt12 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
13 $pname = 'phar://' . $fname;
15 @unlink($fname);
19 $phar = new Phar($fname);
27 $phar = new Phar($fname);
H A Dphar_stub.phpt10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
11 $pname = 'phar://' . $fname;
22 $fp = fopen($fname, 'rb');
26 $phar = new Phar($fname);
31 $fp = fopen($fname, 'rb');
46 $fp = fopen($fname, 'rb');
61 $fp = fopen($fname, 'rb');
70 $fp = fopen($fname, 'rb');
/PHP-5.3/ext/phar/tests/cache_list/files/
H A Dwrite17.phar.inc3 $fname = dirname(__FILE__) . '/write17.phar';
4 @unlink($fname);
6 $phar = new Phar($fname);
H A Dwrite8.phar.inc3 $fname = dirname(__FILE__) . '/write8.phar';
4 @unlink($fname);
6 $phar = new Phar($fname);
H A Dwrite12.phar.inc3 $fname = dirname(__FILE__) . '/write12.phar';
4 @unlink($fname);
6 $phar = new Phar($fname);
H A Dwrite15.phar.inc3 $fname = dirname(__FILE__) . '/write15.phar';
4 @unlink($fname);
6 $phar = new Phar($fname);
H A Dwrite11.phar.inc3 $fname = dirname(__FILE__) . '/write11.phar';
4 @unlink($fname);
6 $phar = new Phar($fname);
H A Dwrite9.phar.inc3 $fname = dirname(__FILE__) . '/write9.phar';
4 @unlink($fname);
6 $phar = new Phar($fname);
H A Dwrite21.phar.inc3 $fname = dirname(__FILE__) . '/write21.phar';
4 @unlink($fname);
6 $phar = new Phar($fname);

Completed in 93 milliseconds

12345678910>>...14