Home
last modified time | relevance | path

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

123

/PHP-7.4/ext/standard/tests/file/
H A Dis_file_basic.phpt2 Test is_file() function: basic functionality
5 /* Prototype: bool is_file ( string $filename );
10 echo "*** Testing is_file(): basic functionality ***\n";
13 var_dump( is_file(__FILE__) );
16 var_dump( is_file(__DIR__) );
21 var_dump( is_file($file_name) );
24 var_dump( is_file($file_name) );
27 var_dump( is_bool( is_file(__FILE__) ) );
28 var_dump( is_bool( is_file("/no/such/file") ) );
39 *** Testing is_file(): basic functionality ***
[all …]
H A Dis_file_variation1.phpt2 Test is_file() function: usage variations - diff. files
5 /* Prototype: bool is_file ( string $filename );
10 /* Testing is_file() with file containing data, truncating its size
15 echo "-- Testing is_file() with file containing data --\n";
20 var_dump( is_file($filename) );
23 echo "\n-- Testing is_file() after truncating filesize to zero bytes --\n";
27 var_dump( is_file($file_path."/is_file_variation1.tmp") ); // expected true
31 echo "\n-- Testing is_file() with an empty file --\n";
47 -- Testing is_file() with file containing data --
50 -- Testing is_file() after truncating filesize to zero bytes --
[all …]
H A Dis_file_variation2.phpt2 Test is_file() function: usage variations - links
10 /* Prototype: bool is_file ( string $filename );
15 /* Creating soft and hard links to a file and applying is_file() on links */
20 echo "*** Testing is_file() with links ***\n";
23 var_dump( is_file($file_path."/is_file_variation2_symlink.tmp") ); //expected true
28 var_dump( is_file($file_path."/is_file_variation2_link.tmp") ); // expected: true
41 *** Testing is_file() with links ***
H A Dis_file_variation4.phpt2 Test is_file() function: usage variations - diff. path notations (Bug #42027)
5 /* Prototype: bool is_file ( string $filename );
14 echo "*** Testing is_file() with different notations of file names ***\n";
30 "is_file_variation4/is_file*.tmp",
41 var_dump( is_file( $file_path."/".$file ) );
56 *** Testing is_file() with different notations of file names ***
71 Warning: is_file() expects parameter 1 to be a valid path, string given in %s on line %d
75 Warning: is_file() expects parameter 1 to be a valid path, string given in %s on line %d
H A Dlstat_stat_variation11.phpt2 Test lstat() and stat() functions: usage variations - effect of is_file()
19 /* test the effects of is_file() on stats of a file */
26 // is_file() on a file
27 echo "*** Testing stat() on a file after using is_file() on it ***\n";
32 var_dump( is_file($filename) );
50 *** Testing stat() on a file after using is_file() on it ***
H A Dis_file_variation3.phpt2 Test is_file() function: usage variations - invalid filenames
7 /* Prototype: bool is_file ( string $filename );
12 /* Testing is_file() with invalid arguments -int, float, bool, NULL, resource */
41 flatten($filename), @is_file($filename));
H A Dstat_variation4-win32.phpt2 Test stat() functions: usage variations - effects of is_dir() & is_file()
17 /* test the effects on the stats of dir/file for using is_dir() & is_file() on dir/file */
31 with is_dir() and is_file() functions ***\n";
52 // is_file() on a file
59 var_dump( is_file($old_filename) );
79 with is_dir() and is_file() functions ***
H A Dbug75679.phpt17 if (copy (__FILE__, $file) && is_file ($file))
39 if (is_file($file)) {
H A Dbug78296.phpt2 Bug #78296 (is_file fails to detect file)
H A Dcopy_variation13.phpt25 var_dump( is_file($dir) );
28 var_dump( is_file($file) );
H A D003.phpt10 'is_file',
H A Dcopy_variation11.phpt36 var_dump( is_file($file) ); //expected: bool(true)
39 var_dump( is_file($dir) ); //expected: bool(false)
H A Dcopy_variation7.phpt42 var_dump( is_file($file_path."/copy_copy_variation7_symlink.tmp") );
50 var_dump( is_file($file_path."/copy_copy_variation7_hardlink.tmp") );
/PHP-7.4/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-7.4/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 is_file();
13 var_dump(is_file(__FILE__));
24 var_dump(is_link("./stat.php"),is_file("./stat.php"), is_link("./oops"), is_file("./oops"));
25 var_dump(is_link("testit/link"), filetype("testit/link"), filetype("testit"), is_file("testit/link"…
29 var_dump(is_dir("./bar"), is_file("foo/bar/blah"));
42 Warning: is_file() expects exactly 1 parameter, 0 given in %sstat2_5.3.php on line %d
H A Dbug52013.phpt32 if (is_file(__DIR__ . '/testdir/1.php'))
36 if (is_file(__DIR__ . '/compressed.phar'))
/PHP-7.4/ext/reflection/tests/
H A DReflectionFunction_isDisabled_basic.phpt7 disable_functions=is_file
10 $rc = new ReflectionFunction('is_file');
/PHP-7.4/ext/session/tests/
H A Dbug61470.phpt13 var_dump(is_file($file1));
18 var_dump(is_file($file2));
/PHP-7.4/ext/zlib/tests/
H A Dzlib_scheme_stat_basic2.phpt15 echo "is_file=";
16 var_dump(is_file($srcFile));
33 is_file=bool(false)
/PHP-7.4/ext/zip/tests/
H A Dbug14962.phpt18 if (!is_file($dir . "/__14962.zip")) {
26 if (is_file($fullpath)) {
H A Dbug80863.phpt30 var_dump(is_file("$target/file1.txt"));
31 var_dump(is_file("$target/file2.txt"));
/PHP-7.4/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-7.4/ext/curl/tests/
H A Dbug48207.phpt42 is_file($tempfile) and @unlink($tempfile);
43 isset($tempname) and is_file($tempname) and @unlink($tempname);
/PHP-7.4/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-7.4/ext/opcache/tests/
H A Dbug74663.phpt19 var_dump(is_file($file));

Completed in 30 milliseconds

123