Home
last modified time | relevance | path

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

12345678910>>...14

/PHP-7.3/ext/standard/tests/file/
H A D001-win32-mb.phpt17 @unlink($fname);
18 if (file_exists($fname)) {
24 chmod ($fname, 0744);
30 if (is_link($fname)) {
40 $s = stat ($fname);
41 $ls = lstat ($fname);
47 echo "$fname is " . filetype($fname) . "\n";
48 printf ("$fname permissions are 0%o\n", 0777 & fileperms($fname));
49 echo "$fname size is " . filesize($fname) . "\n";
70 if (is_dir($fname)) {
[all …]
/PHP-7.3/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.3/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.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-7.3/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.3/ext/phar/tests/tar/
H A Dcreate_new_and_modify.phpt10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.tar.php';
11 $pname = 'phar://' . $fname;
13 @unlink($fname);
25 $phar = new Phar($fname);
27 $sig1 = md5_file($fname);
34 $phar = new Phar($fname);
35 $sig2 = md5_file($fname);
H A Dtar_gzip.phpt14 $fname = dirname(__FILE__) . '/tar_gzip.phar';
15 $pname = 'phar://' . $fname;
19 $a = new tarmaker($fname, 'zlib');
32 include $fname;
34 $a = new Phar($fname);
36 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.3/ext/phar/tests/zip/
H A Dcreate_new_and_modify.phpt10 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.zip.php';
11 $pname = 'phar://' . $fname;
13 @unlink($fname);
25 $phar = new Phar($fname);
27 $sig1 = md5_file($fname);
34 $phar = new Phar($fname);
35 $sig2 = md5_file($fname);
/PHP-7.3/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.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-7.3/ext/phar/
H A Dphar_object.c573 fname = estrndup(fname, fname_len); in PHP_METHOD()
799 efree(fname); in PHP_METHOD()
1056 char *fname; in PHP_METHOD() local
1152 fname = arch; in PHP_METHOD()
1165 if (fname == arch && fname != save_fname) { in PHP_METHOD()
1240 efree(fname); in PHP_METHOD()
1346 fname = estrndup(phar->fname, phar->fname_len); in PHP_METHOD()
1354 efree(fname); in PHP_METHOD()
2285 phar->fname = source->fname; in phar_convert_to_other()
2624 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()
621 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
623 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile()
627 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile()
630 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile()
632 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile()
635 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile()
662 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
[all …]
H A Dphar.c211 if (phar->fname) { in PHP_INI_END()
213 phar->fname = NULL; in PHP_INI_END()
555 && !strncmp(fname, phar->fname, fname_len)) || !alias)
1061 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent);
1368 fname = ZSTR_VAL(actual);
1405 mydata->fname = expand_filepath(fname, NULL);
1542 fname = ZSTR_VAL(actual);
1766 char *filename = estrndup(fname, (ext - fname) + ext_len);
2286 char *fname; local
2297 fname_len = strlen(fname);
[all …]
H A Dutil.c262 fname_len = strlen(fname); in phar_find_in_include_path()
271 …if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fnam… in phar_find_in_include_path()
925 *filename = fd_ptr->fname; in phar_resolve_alias()
1003 if (fname && (fname_len != fd_ptr->fname_len || strncmp(fname, fd_ptr->fname, fname_len))) { in phar_get_archive()
1033 save = fname; in phar_get_archive()
1036 if (fname && fname_len) { in phar_get_archive()
1118 fname = my_realpath; in phar_get_archive()
2017 char *fname; in phar_copy_cached_phar() local
2023 fname = phar->fname; in phar_copy_cached_phar()
2024 phar->fname = estrndup(phar->fname, phar->fname_len); in phar_copy_cached_phar()
[all …]
/PHP-7.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 Dbug74196.phpt11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.1.2.3.phar.tar.gz';
12 $decompressed_name = str_replace( ".gz", "", $fname);
13 var_dump(file_exists($fname));
15 $phar = new Phar($fname);
H A Dcreate_new_and_modify.phpt11 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php';
12 $pname = 'phar://' . $fname;
14 @unlink($fname);
18 $phar = new Phar($fname);
34 $phar = new Phar($fname);
/PHP-7.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);

Completed in 100 milliseconds

12345678910>>...14