Home
last modified time | relevance | path

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

12345678910>>...15

/PHP-7.0/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);
H A Dis_callable_anon.phpt8 $fname = null;
9 if (is_callable([$this, 'f'], false, $fname)) {
10 call_user_func($fname);
/PHP-7.0/ext/zip/lib/
H A Dzip_source_win32a.c44 static int _win32_remove_a(const void *fname);
55 zip_source_win32a(zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) in zip_source_win32a() argument
60 return zip_source_win32a_create(fname, start, len, &za->error); in zip_source_win32a()
65 zip_source_win32a_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *er… in zip_source_win32a_create() argument
67 if (fname == NULL || length < -1) { in zip_source_win32a_create()
72 …return _zip_source_win32_handle_or_name(fname, INVALID_HANDLE_VALUE, start, length, 1, NULL, &win3… in zip_source_win32a_create()
95 len = strlen((const char *)ctx->fname) + 10; in _win32_create_temp_a()
102 if (sprintf((char *)*temp, "%s.%08x", (const char *)ctx->fname, value) != len - 1) { in _win32_create_temp_a()
113 if (!MoveFileExA(ctx->tmpname, ctx->fname, MOVEFILE_REPLACE_EXISTING)) in _win32_rename_temp_a()
120 _win32_remove_a(const void *fname) in _win32_remove_a() argument
[all …]
H A Dzip_source_win32w.c44 static int _win32_remove_w(const void *fname);
55 zip_source_win32w(zip_t *za, const wchar_t *fname, zip_uint64_t start, zip_int64_t len) in zip_source_win32w() argument
60 return zip_source_win32w_create(fname, start, len, &za->error); in zip_source_win32w()
65 zip_source_win32w_create(const wchar_t *fname, zip_uint64_t start, zip_int64_t length, zip_error_t … in zip_source_win32w_create() argument
67 if (fname == NULL || length < -1) { in zip_source_win32w_create()
72 …return _zip_source_win32_handle_or_name(fname, INVALID_HANDLE_VALUE, start, length, 1, NULL, &win3… in zip_source_win32w_create()
95 len = wcslen((const wchar_t *)ctx->fname) + 10; in _win32_create_temp_w()
102 …if (_snwprintf((wchar_t *)*temp, len, L"%s.%08x", (const wchar_t *)ctx->fname, value) != len - 1) { in _win32_create_temp_w()
113 if (!MoveFileExW(ctx->tmpname, ctx->fname, MOVEFILE_REPLACE_EXISTING)) in _win32_rename_temp_w()
120 _win32_remove_w(const void *fname) in _win32_remove_w() argument
[all …]
H A Dzip_source_file.c41 zip_source_file(zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) in zip_source_file() argument
46 return zip_source_file_create(fname, start, len, &za->error); in zip_source_file()
51 zip_source_file_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *erro… in zip_source_file_create() argument
53 if (fname == NULL || length < -1) { in zip_source_file_create()
58 return _zip_source_file_or_p(fname, NULL, start, length, NULL, error); in zip_source_file_create()
H A Dzip_source_win32utf8.c42 zip_source_file(zip_t *za, const char *fname, zip_uint64_t start, zip_int64_t len) in zip_source_file() argument
47 return zip_source_file_create(fname, start, len, &za->error); in zip_source_file()
52 zip_source_file_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *erro… in zip_source_file_create() argument
58 if (fname == NULL || length < -1) { in zip_source_file_create()
64 size = MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, fname, -1, NULL, 0); in zip_source_file_create()
73 MultiByteToWideChar(CP_UTF8, MB_ERR_INVALID_CHARS, fname, -1, wfname, size); in zip_source_file_create()
H A Dzip_name_locate.c44 zip_name_locate(zip_t *za, const char *fname, zip_flags_t flags) in zip_name_locate() argument
46 return _zip_name_locate(za, fname, flags, &za->error); in zip_name_locate()
51 _zip_name_locate(zip_t *za, const char *fname, zip_flags_t flags, zip_error_t *error) in _zip_name_locate() argument
60 if (fname == NULL) { in _zip_name_locate()
82 if (cmp(fname, fn) == 0) { in _zip_name_locate()
92 return _zip_hash_lookup(za->names, (const zip_uint8_t *)fname, flags, error); in _zip_name_locate()
H A Dzip_source_filep.c118 if (file == NULL && fname == NULL) { in _zip_source_file_or_p()
128 ctx->fname = NULL; in _zip_source_file_or_p()
129 if (fname) { in _zip_source_file_or_p()
130 if ((ctx->fname=strdup(fname)) == NULL) { in _zip_source_file_or_p()
154 if (ctx->fname) { in _zip_source_file_or_p()
166 free(ctx->fname); in _zip_source_file_or_p()
234 if (ctx->fname == NULL) { in read_file()
262 if (ctx->fname) { in read_file()
272 free(ctx->fname); in read_file()
280 if (ctx->fname) { in read_file()
[all …]
/PHP-7.0/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-7.0/ext/fileinfo/tests/
H A Dbug69320.phpt8 $fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug69320.txt";
9 file_put_contents($fname, "foo");
10 var_dump(finfo_file(finfo_open(FILEINFO_MIME_TYPE), $fname));
15 $fname = dirname(__FILE__) . DIRECTORY_SEPARATOR . "bug69320.txt";
16 unlink($fname);
/PHP-7.0/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);
26 $phar = new Phar($fname);
28 $sig1 = md5_file($fname);
35 $phar = new Phar($fname);
36 $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);
/PHP-7.0/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);
26 $phar = new Phar($fname);
28 $sig1 = md5_file($fname);
35 $phar = new Phar($fname);
36 $sig2 = md5_file($fname);
/PHP-7.0/ext/standard/tests/streams/
H A Dbug72534.phpt5 $fname = dirname(__FILE__) . '/aa.tmp';
6 $fp0 = fopen($fname, 'w');
13 $fname = dirname(__FILE__) . '/aa.tmp';
14 unlink($fname);
/PHP-7.0/ext/phar/
H A Dphar_object.c599 fname = estrndup(fname, fname_len); in PHP_METHOD()
824 efree(fname); in PHP_METHOD()
1087 char *fname; in PHP_METHOD() local
1193 fname = arch; in PHP_METHOD()
1206 if (fname == arch && fname != save_fname) { in PHP_METHOD()
1281 efree(fname); in PHP_METHOD()
1391 fname = estrndup(phar->fname, phar->fname_len); in PHP_METHOD()
1399 efree(fname); in PHP_METHOD()
2303 phar->fname = source->fname; in phar_convert_to_other()
2642 char *fname; in PHP_METHOD() local
[all …]
H A Dtar.c100 int phar_is_tar(char *buf, char *fname) /* {{{ */ in phar_is_tar() argument
116 if ((bname = strrchr(fname, PHP_DIR_SEPARATOR))) { in phar_is_tar()
117 fname = bname; in phar_is_tar()
611 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
613 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile()
617 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile()
620 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile()
622 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile()
625 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile()
652 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
[all …]
H A Dphar.c213 if (phar->fname) { in PHP_INI_END()
215 phar->fname = NULL; in PHP_INI_END()
557 && !strncmp(fname, phar->fname, fname_len)) || !alias)
1061 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent);
1355 fname = ZSTR_VAL(actual);
1392 mydata->fname = expand_filepath(fname, NULL);
1530 fname = ZSTR_VAL(actual);
1754 char *filename = estrndup(fname, (ext - fname) + ext_len);
2281 char *fname; local
2292 fname_len = strlen(fname);
[all …]
H A Dzip.c262 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent); in phar_parse_zipfile()
264 phar_unixify_path_separators(mydata->fname, fname_len); in phar_parse_zipfile()
268 ext = strrchr(mydata->fname, '/'); in phar_parse_zipfile()
271 mydata->ext = memchr(ext, '.', (mydata->fname + fname_len) - ext); in phar_parse_zipfile()
273 mydata->ext = memchr(ext + 1, '.', (mydata->fname + fname_len) - ext - 1); in phar_parse_zipfile()
276 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext; in phar_parse_zipfile()
309 pefree(mydata->fname, mydata->is_persistent); \ in phar_parse_zipfile()
331 pefree(mydata->fname, mydata->is_persistent); \ in phar_parse_zipfile()
684 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile()
696 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile()
[all …]
H A Dutil.c271 fname_len = strlen(fname); in phar_find_in_include_path()
280 …if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fnam… in phar_find_in_include_path()
934 *filename = fd_ptr->fname; in phar_resolve_alias()
1012 if (fname && (fname_len != fd_ptr->fname_len || strncmp(fname, fd_ptr->fname, fname_len))) { in phar_get_archive()
1042 save = fname; in phar_get_archive()
1045 if (fname && fname_len) { in phar_get_archive()
1127 fname = my_realpath; in phar_get_archive()
2013 char *fname; in phar_copy_cached_phar() local
2019 fname = phar->fname; in phar_copy_cached_phar()
2020 phar->fname = estrndup(phar->fname, phar->fname_len); in phar_copy_cached_phar()
[all …]
/PHP-7.0/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-7.0/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 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-7.0/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);

Completed in 123 milliseconds

12345678910>>...15