Home
last modified time | relevance | path

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

12345678910>>...13

/php-src/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-src/ext/phar/tests/
H A Dgh16406.phpt11 $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 Dtest_unset.phpt9 $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 Dbug74196.phpt11 $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 Dphar_gzip.phpt11 $fname = __DIR__ . '/phar_gzip.phar';
12 $pname = 'phar://' . $fname;
31 include $fname;
33 $a = new Phar($fname);
35 copy($fname, $fname2);
H A Dgh13833.phpt10 $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 Dphar_metadata_write2.phpt10 $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 Dbug53885.phpt7 $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 Dbug69320.phpt8 $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 Dbug72534.phpt5 $fname = __DIR__ . '/aa.tmp';
6 $fp0 = fopen($fname, 'w');
13 $fname = __DIR__ . '/aa.tmp';
14 unlink($fname);
H A Dbug72857.phpt5 $fname = __DIR__ . DIRECTORY_SEPARATOR . "stream_socket_recvfrom.tmp";
6 $fp0 = fopen($fname, 'w');
14 unlink($fname);
/php-src/ext/phar/tests/zip/
H A Dcreate_new_and_modify.phpt11 $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 Dcreate_new_and_modify.phpt11 $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 Dtar_gzip.phpt12 $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 Dall.phpt10 $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 Dbadchecksum.phpt7 $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 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-src/ext/phar/
H A Dtar.c103 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()
627 myphar->fname = pestrndup(fname, fname_len, myphar->is_persistent); in phar_parse_tarfile()
629 phar_unixify_path_separators(myphar->fname, fname_len); in phar_parse_tarfile()
633 p = strrchr(myphar->fname, '/'); in phar_parse_tarfile()
636 myphar->ext = memchr(p, '.', (myphar->fname + fname_len) - p); in phar_parse_tarfile()
638 myphar->ext = memchr(p + 1, '.', (myphar->fname + fname_len) - p - 1); in phar_parse_tarfile()
641 myphar->ext_len = (myphar->fname + fname_len) - myphar->ext; in phar_parse_tarfile()
668 zend_hash_str_del(&(PHAR_G(phar_fname_map)), myphar->fname, fname_len); in phar_parse_tarfile()
[all …]
H A Dphar_object.c413 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 Dphar.c202 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()
1814 char *filename = estrndup(fname, (ext - fname) + ext_len); in phar_analyze_path()
2325 if (!fname) { in phar_open_executed_filename()
[all …]
H A Dzip.c316 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 Dutil.c283 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()
2075 char *fname; in phar_copy_cached_phar() local
2081 fname = phar->fname; in phar_copy_cached_phar()
2082 phar->fname = estrndup(phar->fname, phar->fname_len); in phar_copy_cached_phar()
[all …]
/php-src/ext/standard/tests/general_functions/
H A Dis_callable_anon.phpt8 $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 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 92 milliseconds

12345678910>>...13