Home
last modified time | relevance | path

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

12

/PHP-5.5/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(dirname(__FILE__)) );
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_error.phpt2 Test is_file() function: error conditions
5 /* Prototype: bool is_file ( string $filename );
10 echo "*** Testing is_file() error conditions ***";
12 var_dump( is_file() ); // Zero No. of args
16 var_dump( is_file( $file_path."/is_file_error.tmp", $file_path."/is_file_error1.tmp") );
19 var_dump( is_file($file_path."/is_file_error1.tmp") );
22 var_dump( is_file($file_handle) );
40 *** Testing is_file() error conditions ***
41 Warning: is_file() expects exactly 1 parameter, 0 given in %s on line %d
44 Warning: is_file() expects exactly 1 parameter, 2 given in %s on line %d
[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
42 *** 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()
22 /* test the effects of is_file() on stats of a file */
29 // is_file() on a file
30 echo "*** Testing stat() on a file after using is_file() on it ***\n";
35 var_dump( is_file($filename) );
54 *** 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
5 /* Prototype: bool is_file ( string $filename );
10 /* Testing is_file() with invalid arguments -int, float, bool, NULL, resource */
33 var_dump( is_file($filename) );
54 Warning: is_file() expects parameter 1 to be a valid path, resource given in %s on line %d
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) );
80 with is_dir() and is_file() functions ***
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.phpt43 var_dump( is_file($file_path."/copy_copy_variation7_symlink.tmp") );
51 var_dump( is_file($file_path."/copy_copy_variation7_hardlink.tmp") );
/PHP-5.5/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-5.5/ext/phar/tests/
H A Dstat2.phpt2 Phar: test stat function interceptions and is_file/is_link edge cases (PHP 5.2)
12 is_file();
14 var_dump(is_file(__FILE__));
25 var_dump(is_link("./stat.php"),is_file("./stat.php"), is_link("./oops"), is_file("./oops"));
26 var_dump(is_link("testit/link"), filetype("testit/link"), filetype("testit"), is_file("testit/link"…
30 var_dump(is_dir("./bar"), is_file("foo/bar/blah"));
43 Warning: Wrong parameter count for is_file() in %sstat2.php on line %d
H A Dstat2_5.3.phpt2 Phar: test stat function interceptions and is_file/is_link edge cases (PHP 5.3+)
12 is_file();
14 var_dump(is_file(__FILE__));
25 var_dump(is_link("./stat.php"),is_file("./stat.php"), is_link("./oops"), is_file("./oops"));
26 var_dump(is_link("testit/link"), filetype("testit/link"), filetype("testit"), is_file("testit/link"…
30 var_dump(is_dir("./bar"), is_file("foo/bar/blah"));
43 Warning: is_file() expects exactly 1 parameter, 0 given in %sstat2_5.3.php on line %d
H A Dbug52013.phpt32 if (is_file(dirname(__FILE__) . '/testdir/1.php'))
36 if (is_file(dirname(__FILE__) . '/compressed.phar'))
H A Dstat.phpt52 echo "is_file\n";
53 var_dump(is_file("dir/file1.txt"));
215 is_file
/PHP-5.5/ext/reflection/tests/
H A DReflectionFunction_isDisabled_basic.phpt11 disable_functions=is_file
14 $rc = new ReflectionFunction('is_file');
/PHP-5.5/ext/pcre/
H A Dupgrade-pcre.php55 if (is_file($tmp = $newfile . '.generic') || is_file($tmp = $newfile . '.dist')) {
60 if (!is_file($newfile)) {
/PHP-5.5/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-5.5/ext/zip/tests/
H A Dbug14962.phpt19 if (!is_file($dir . "/__14962.zip")) {
27 if (is_file($fullpath)) {
/PHP-5.5/ext/standard/tests/file/windows_links/
H A Dbug48746_1.phpt39 var_dump(is_file("mklink_junction\\a.php"));
40 var_dump(is_file("$fullpath\\mnt\\test\\directory\\b.php"));
41 var_dump(is_file("$fullpath\\mnt\\test\\mklink_junction\\c.php"));
/PHP-5.5/ext/curl/tests/
H A Dbug48207.phpt42 is_file($tempfile) and @unlink($tempfile);
43 isset($tempname) and is_file($tempname) and @unlink($tempname);
/PHP-5.5/ext/phar/tests/tar/
H A Dtar_003.phpt36 echo (is_file($alias . '/' . $v) ? "file\n" : "dir\n");
45 echo (is_file($alias . '/' . $v) ? "file\n" : "dir\n");
/PHP-5.5/ext/fileinfo/tests/
H A Dfinfo_file_002.phpt12 if (is_file($filename)) {

Completed in 33 milliseconds

12