/PHP-7.2/ext/standard/tests/file/ |
H A D | 001-win32-mb.phpt | 17 @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.2/ext/standard/tests/general_functions/ |
H A D | proc_open_pipes.inc | 5 $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 D | is_callable_anon.phpt | 8 $fname = null; 9 if (is_callable([$this, 'f'], false, $fname)) { 10 call_user_func($fname);
|
/PHP-7.2/ext/zip/lib/ |
H A D | zip_source_win32a.c | 44 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 D | zip_source_win32w.c | 44 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 D | zip_source_file.c | 41 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 D | zip_source_win32utf8.c | 42 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 D | zip_name_locate.c | 44 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 D | zip_source_filep.c | 118 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.2/ext/zip/tests/ |
H A D | bug53885.phpt | 9 $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.2/ext/fileinfo/tests/ |
H A D | bug69320.phpt | 8 $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.2/ext/phar/tests/tar/ |
H A D | create_new_and_modify.phpt | 11 $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 D | tar_gzip.phpt | 15 $fname = dirname(__FILE__) . '/tar_gzip.phar'; 16 $pname = 'phar://' . $fname; 20 $a = new tarmaker($fname, 'zlib'); 33 include $fname; 35 $a = new Phar($fname); 37 copy($fname, $fname2);
|
/PHP-7.2/ext/phar/tests/zip/ |
H A D | create_new_and_modify.phpt | 11 $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.2/ext/standard/tests/streams/ |
H A D | bug72534.phpt | 5 $fname = dirname(__FILE__) . '/aa.tmp'; 6 $fp0 = fopen($fname, 'w'); 13 $fname = dirname(__FILE__) . '/aa.tmp'; 14 unlink($fname);
|
/PHP-7.2/ext/phar/ |
H A D | tar.c | 100 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 D | phar_object.c | 590 fname = estrndup(fname, fname_len); in PHP_METHOD() 820 efree(fname); in PHP_METHOD() 1083 char *fname; in PHP_METHOD() local 1184 fname = arch; in PHP_METHOD() 1197 if (fname == arch && fname != save_fname) { in PHP_METHOD() 1272 efree(fname); in PHP_METHOD() 1381 fname = estrndup(phar->fname, phar->fname_len); in PHP_METHOD() 1389 efree(fname); in PHP_METHOD() 2336 phar->fname = source->fname; in phar_convert_to_other() 2675 char *fname; in PHP_METHOD() local [all …]
|
H A D | phar.c | 213 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); 1350 fname = ZSTR_VAL(actual); 1387 mydata->fname = expand_filepath(fname, NULL); 1524 fname = ZSTR_VAL(actual); 1748 char *filename = estrndup(fname, (ext - fname) + ext_len); 2272 char *fname; local 2283 fname_len = strlen(fname); [all …]
|
H A D | zip.c | 262 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() 683 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() 695 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() [all …]
|
H A D | util.c | 264 fname_len = strlen(fname); in phar_find_in_include_path() 273 …if (fname_len < 7 || memcmp(fname, "phar://", 7) || SUCCESS != phar_split_fname(fname, strlen(fnam… in phar_find_in_include_path() 927 *filename = fd_ptr->fname; in phar_resolve_alias() 1005 if (fname && (fname_len != fd_ptr->fname_len || strncmp(fname, fd_ptr->fname, fname_len))) { in phar_get_archive() 1035 save = fname; in phar_get_archive() 1038 if (fname && fname_len) { in phar_get_archive() 1120 fname = my_realpath; in phar_get_archive() 2006 char *fname; in phar_copy_cached_phar() local 2012 fname = phar->fname; in phar_copy_cached_phar() 2013 phar->fname = estrndup(phar->fname, phar->fname_len); in phar_copy_cached_phar() [all …]
|
/PHP-7.2/ext/fileinfo/libmagic/ |
H A D | apptype.c | 50 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.2/ext/phar/tests/ |
H A D | test_unset.phpt | 9 $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 D | bug74196.phpt | 11 $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 D | phar_stub.phpt | 10 $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.2/ext/phar/tests/cache_list/files/ |
H A D | write17.phar.inc | 3 $fname = dirname(__FILE__) . '/write17.phar'; 4 @unlink($fname); 6 $phar = new Phar($fname);
|