Home
last modified time | relevance | path

Searched refs:is_file (Results 1 – 25 of 55) sorted by relevance

123

/PHP-8.3/ext/standard/tests/file/
H A Dis_file_basic.phpt2 Test is_file() function: basic functionality
5 echo "*** Testing is_file(): basic functionality ***\n";
8 var_dump( is_file(__FILE__) );
11 var_dump( is_file(__DIR__) );
16 var_dump( is_file($file_name) );
19 var_dump( is_file($file_name) );
21 echo "*** Testing is_file() for its return value type ***\n";
22 var_dump( is_bool( is_file(__FILE__) ) );
23 var_dump( is_bool( is_file("/no/such/file") ) );
34 *** Testing is_file(): basic functionality ***
[all …]
H A Dis_file_variation1.phpt2 Test is_file() function: usage variations - diff. files
5 /* Testing is_file() with file containing data, truncating its size
10 echo "-- Testing is_file() with file containing data --\n";
15 var_dump( is_file($filename) );
18 echo "\n-- Testing is_file() after truncating filesize to zero bytes --\n";
22 var_dump( is_file($file_path."/is_file_variation1.tmp") ); // expected true
26 echo "\n-- Testing is_file() with an empty file --\n";
29 var_dump( is_file($file_path."/is_file_variation1.tmp") ); //expected true
42 -- Testing is_file() with file containing data --
45 -- Testing is_file() after truncating filesize to zero bytes --
[all …]
H A Dis_file_variation2.phpt2 Test is_file() function: usage variations - links
10 /* Creating soft and hard links to a file and applying is_file() on links */
15 echo "*** Testing is_file() with links ***\n";
18 var_dump( is_file($file_path."/is_file_variation2_symlink.tmp") ); //expected true
23 var_dump( is_file($file_path."/is_file_variation2_link.tmp") ); // expected: true
36 *** Testing is_file() with links ***
H A Dlstat_stat_variation11.phpt2 Test lstat() and stat() functions: usage variations - effect of is_file()
12 /* test the effects of is_file() on stats of a file */
19 // is_file() on a file
20 echo "*** Testing stat() on a file after using is_file() on it ***\n";
25 var_dump( is_file($filename) );
43 *** Testing stat() on a file after using is_file() on it ***
H A Dstat_variation4-win32.phpt2 Test stat() functions: usage variations - effects of is_dir() & is_file()
12 /* test the effects on the stats of dir/file for using is_dir() & is_file() on dir/file */
26 with is_dir() and is_file() functions ***\n";
47 // is_file() on a file
54 var_dump( is_file($old_filename) );
74 with is_dir() and is_file() functions ***
H A Dis_file_variation4.phpt2 Test is_file() function: usage variations - diff. path notations (Bug #42027)
9 echo "*** Testing is_file() with different notations of file names ***\n";
25 "is_file_variation4/is_file*.tmp",
37 var_dump( is_file( $file_path."/".$file ) );
55 *** Testing is_file() with different notations of file names ***
H A Dbug75679.phpt17 if (copy (__FILE__, $file) && is_file ($file))
38 if (is_file($file)) {
H A Dcopy_variation13.phpt20 var_dump( is_file($dir) );
23 var_dump( is_file($file) );
H A Dbug78296.phpt2 Bug #78296 (is_file fails to detect file)
H A D003.phpt10 'is_file',
H A Dcopy_variation11.phpt31 var_dump( is_file($file) ); //expected: bool(true)
34 var_dump( is_file($dir) ); //expected: bool(false)
H A Dcopy_variation7.phpt37 var_dump( is_file($file_path."/copy_copy_variation7_symlink.tmp") );
45 var_dump( is_file($file_path."/copy_copy_variation7_hardlink.tmp") );
/PHP-8.3/tests/security/
H A Dopen_basedir_is_file.phpt8 test_open_basedir("is_file");
16 *** Testing open_basedir configuration [is_file] ***
23 Warning: is_file(): open_basedir restriction in effect. File(../bad) is not within the allowed path…
26 Warning: is_file(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allo…
29 Warning: is_file(): open_basedir restriction in effect. File(..) is not within the allowed path(s):…
32 Warning: is_file(): open_basedir restriction in effect. File(../) is not within the allowed path(s)…
35 Warning: is_file(): open_basedir restriction in effect. File(/) is not within the allowed path(s): …
38 Warning: is_file(): open_basedir restriction in effect. File(../bad/.) is not within the allowed pa…
41 Warning: is_file(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the…
47 Warning: is_file(): open_basedir restriction in effect. File(./../.) is not within the allowed path…
[all …]
/PHP-8.3/ext/phar/tests/
H A Dstat2_5.3.phpt2 Phar: test stat function interceptions and is_file/is_link edge cases (PHP 5.3+)
11 var_dump(is_file(__FILE__));
22 var_dump(is_link("./stat.php"),is_file("./stat.php"), is_link("./oops"), is_file("./oops"));
23 var_dump(is_link("testit/link"), filetype("testit/link"), filetype("testit"), is_file("testit/link"…
27 var_dump(is_dir("./bar"), is_file("foo/bar/blah"));
H A Dbug52013.phpt30 if (is_file(__DIR__ . '/testdir/1.php'))
34 if (is_file(__DIR__ . '/compressed.phar'))
/PHP-8.3/ext/reflection/tests/
H A DReflectionFunction_isDisabled_basic.phpt7 disable_functions=is_file
11 $rf = new ReflectionFunction('is_file');
21 Function is_file() does not exist
/PHP-8.3/ext/zip/tests/
H A Dbug_gh8781.phpt8 var_dump(is_file($file));
14 var_dump(is_file($file));
H A Dbug14962.phpt16 if (!is_file($dir . "/__14962.zip")) {
24 if (is_file($fullpath)) {
H A Dbug80863.phpt28 var_dump(is_file("$target/file1.txt"));
29 var_dump(is_file("$target/file2.txt"));
/PHP-8.3/ext/zlib/tests/
H A Dzlib_scheme_stat_basic2.phpt11 echo "is_file=";
12 var_dump(is_file($srcFile));
28 is_file=bool(false)
/PHP-8.3/ext/session/tests/
H A Dbug61470.phpt15 var_dump(is_file($file1));
20 var_dump(is_file($file2));
/PHP-8.3/ext/standard/tests/file/windows_links/
H A Dbug48746_1.phpt37 var_dump(is_file("mklink_junction\\a.php"));
38 var_dump(is_file("$fullpath\\mnt\\test\\directory\\b.php"));
39 var_dump(is_file("$fullpath\\mnt\\test\\mklink_junction\\c.php"));
/PHP-8.3/ext/curl/tests/
H A Dbug48207.phpt47 is_file($tempfile) and @unlink($tempfile);
48 isset($tempname) and is_file($tempname) and @unlink($tempname);
/PHP-8.3/ext/phar/tests/tar/
H A Dtar_003.phpt35 echo (is_file($alias . '/' . $v) ? "file\n" : "dir\n");
44 echo (is_file($alias . '/' . $v) ? "file\n" : "dir\n");
/PHP-8.3/ext/opcache/tests/
H A Dbug74663.phpt19 var_dump(is_file($file));

Completed in 64 milliseconds

123