/php-src/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-src/ext/phar/tests/ |
H A D | gh16406.phpt | 11 $fname = __DIR__ . '/gh16406.phar'; 12 @unlink($fname . '.tar'); 13 @unlink($fname . '.gz'); 14 @unlink($fname); 19 $phar = new Phar($fname); 28 $fname = __DIR__ . '/gh16406.phar'; 29 @unlink($fname . '.tar'); 30 @unlink($fname . '.gz'); 31 @unlink($fname);
|
H A D | test_unset.phpt | 9 $fname = __DIR__ . '/' . 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 = __DIR__ . '/' . 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_gzip.phpt | 11 $fname = __DIR__ . '/phar_gzip.phar'; 12 $pname = 'phar://' . $fname; 31 include $fname; 33 $a = new Phar($fname); 35 copy($fname, $fname2);
|
H A D | gh13833.phpt | 10 $fname = __DIR__ . '/gh13833.phar'; 11 $pname = 'phar://' . $fname; 18 include $fname; 24 $phar = new Phar($fname); 28 $fname_new = "$fname.copy.phar"; 29 copy($fname, $fname_new);
|
H A D | phar_metadata_write2.phpt | 10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.php'; 11 $pname = 'phar://' . $fname; 22 $phar = new Phar($fname); 28 $fname_new = "$fname.copy.php"; 29 copy($fname, $fname_new);
|
/php-src/ext/zip/tests/ |
H A D | bug53885.phpt | 7 $fname = __DIR__."/test53885.zip"; 8 if(file_exists($fname)) unlink($fname); 9 touch($fname); 11 $nx->open($fname); 18 $fname = __DIR__."/test53885.zip"; 19 @unlink($fname);
|
/php-src/ext/fileinfo/tests/ |
H A D | bug69320.phpt | 8 $fname = __DIR__ . DIRECTORY_SEPARATOR . "bug69320.txt"; 9 file_put_contents($fname, "foo"); 10 var_dump(finfo_file(finfo_open(FILEINFO_MIME_TYPE), $fname)); 15 $fname = __DIR__ . DIRECTORY_SEPARATOR . "bug69320.txt"; 16 unlink($fname);
|
/php-src/ext/standard/tests/streams/ |
H A D | bug72534.phpt | 5 $fname = __DIR__ . '/aa.tmp'; 6 $fp0 = fopen($fname, 'w'); 13 $fname = __DIR__ . '/aa.tmp'; 14 unlink($fname);
|
H A D | bug72857.phpt | 5 $fname = __DIR__ . DIRECTORY_SEPARATOR . "stream_socket_recvfrom.tmp"; 6 $fp0 = fopen($fname, 'w'); 14 unlink($fname);
|
/php-src/ext/phar/tests/zip/ |
H A D | create_new_and_modify.phpt | 11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.zip.php'; 12 $pname = 'phar://' . $fname; 14 @unlink($fname); 28 $phar = new Phar($fname); 30 $sig1 = md5_file($fname); 37 $phar = new Phar($fname); 38 $sig2 = md5_file($fname);
|
/php-src/ext/phar/tests/tar/ |
H A D | create_new_and_modify.phpt | 11 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar.php'; 12 $pname = 'phar://' . $fname; 14 @unlink($fname); 28 $phar = new Phar($fname); 30 $sig1 = md5_file($fname); 37 $phar = new Phar($fname); 38 $sig2 = md5_file($fname);
|
H A D | tar_gzip.phpt | 12 $fname = __DIR__ . '/tar_gzip.phar'; 13 $pname = 'phar://' . $fname; 17 $a = new tarmaker($fname, 'zlib'); 30 include $fname; 32 $a = new Phar($fname); 34 copy($fname, $fname2);
|
H A D | all.phpt | 10 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.phar.tar.php'; 11 $pname = 'phar://' . $fname; 15 $phar = new Phar($fname); 26 copy($fname, $fname2); 27 Phar::unlinkArchive($fname); 28 var_dump(file_exists($fname), file_exists($pname . '/a'));
|
H A D | badchecksum.phpt | 7 $fname = __DIR__ . '/' . basename(__FILE__, '.php') . '.tar'; 8 $pname = 'phar://' . $fname; 11 $a = new corrupt_tarmaker($fname, 'none'); 17 $p = new PharData($fname);
|
/php-src/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-src/ext/phar/ |
H A D | tar.c | 103 bool phar_is_tar(char *buf, char *fname) /* {{{ */ in phar_is_tar() argument 119 if ((bname = strrchr(fname, PHP_DIR_SEPARATOR))) { in phar_is_tar() 120 fname = bname; in phar_is_tar() 623 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile() 625 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile() 629 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile() 632 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile() 634 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile() 637 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile() 664 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile() [all …]
|
H A D | phar_object.c | 413 if (!fname) { in PHP_METHOD() 460 fname = ""; in PHP_METHOD() 605 fname = estrndup(fname, fname_len); in PHP_METHOD() 869 efree(fname); in PHP_METHOD() 1058 char *fname; in PHP_METHOD() local 1153 fname = arch; in PHP_METHOD() 1166 if (fname == arch && fname != save_fname) { in PHP_METHOD() 1241 efree(fname); in PHP_METHOD() 1346 fname = estrndup(phar->fname, phar->fname_len); in PHP_METHOD() 1354 efree(fname); in PHP_METHOD() [all …]
|
H A D | phar.c | 202 if (phar->fname) { in PHP_INI_END() 204 phar->fname = NULL; in PHP_INI_END() 501 save_fname = fname; in phar_open_parsed_phar() 511 && !strncmp(fname, phar->fname, fname_len)) || !alias) in phar_open_parsed_phar() 517 fname = save_fname; in phar_open_parsed_phar() 547 fname = save_fname; in phar_open_parsed_phar() 1121 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent); in phar_parse_pharfile() 1444 mydata->fname = expand_filepath(fname, NULL); in phar_create_or_parse_filename() 1813 char *filename = estrndup(fname, (ext - fname) + ext_len); in phar_analyze_path() 2324 if (!fname) { in phar_open_executed_filename() [all …]
|
H A D | zip.c | 316 mydata->fname = pestrndup(fname, fname_len, mydata->is_persistent); in phar_parse_zipfile() 318 phar_unixify_path_separators(mydata->fname, fname_len); in phar_parse_zipfile() 322 ext = strrchr(mydata->fname, '/'); in phar_parse_zipfile() 325 mydata->ext = memchr(ext, '.', (mydata->fname + fname_len) - ext); in phar_parse_zipfile() 327 mydata->ext = memchr(ext + 1, '.', (mydata->fname + fname_len) - ext - 1); in phar_parse_zipfile() 330 mydata->ext_len = (mydata->fname + fname_len) - mydata->ext; in phar_parse_zipfile() 363 pefree(mydata->fname, mydata->is_persistent); \ in phar_parse_zipfile() 385 pefree(mydata->fname, mydata->is_persistent); \ in phar_parse_zipfile() 767 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() 779 zend_hash_str_del(&(PHAR_G(phar_fname_map)), mydata->fname, fname_len); in phar_parse_zipfile() [all …]
|
H A D | util.c | 283 if (!fname) { in phar_find_in_include_path() 1047 if (fname && (fname_len != fd_ptr->fname_len || strncmp(fname, fd_ptr->fname, fname_len))) { in phar_get_archive() 1063 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive() 1077 save = fname; in phar_get_archive() 1080 if (fname && fname_len) { in phar_get_archive() 1101 PHAR_G(last_phar_name) = fd->fname; in phar_get_archive() 1162 fname = my_realpath; in phar_get_archive() 2086 char *fname; in phar_copy_cached_phar() local 2092 fname = phar->fname; in phar_copy_cached_phar() 2093 phar->fname = estrndup(phar->fname, phar->fname_len); in phar_copy_cached_phar() [all …]
|
/php-src/ext/standard/tests/general_functions/ |
H A D | is_callable_anon.phpt | 8 $fname = null; 9 if (is_callable([$this, 'f'], false, $fname)) { 10 call_user_func($fname);
|
/php-src/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);
|
H A D | write8.phar.inc | 3 $fname = dirname(__FILE__) . '/write8.phar'; 4 @unlink($fname); 6 $phar = new Phar($fname);
|