/PHP-7.0/ext/standard/tests/file/ |
H A D | is_file_basic.phpt | 2 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 D | is_file_variation1.phpt | 2 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 D | is_file_error.phpt | 2 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 D | is_file_variation2.phpt | 2 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 D | is_file_variation4.phpt | 2 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 D | lstat_stat_variation11.phpt | 2 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 D | is_file_variation3.phpt | 2 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 D | stat_variation4-win32.phpt | 2 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 D | copy_variation13.phpt | 25 var_dump( is_file($dir) ); 28 var_dump( is_file($file) );
|
H A D | 003.phpt | 10 'is_file',
|
H A D | copy_variation11.phpt | 36 var_dump( is_file($file) ); //expected: bool(true) 39 var_dump( is_file($dir) ); //expected: bool(false)
|
/PHP-7.0/tests/security/ |
H A D | open_basedir_is_file.phpt | 8 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.0/ext/phar/tests/ |
H A D | stat2.phpt | 2 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 D | stat2_5.3.phpt | 2 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 D | bug52013.phpt | 32 if (is_file(dirname(__FILE__) . '/testdir/1.php')) 36 if (is_file(dirname(__FILE__) . '/compressed.phar'))
|
H A D | stat.phpt | 53 echo "is_file\n"; 54 var_dump(is_file("dir/file1.txt")); 216 is_file
|
/PHP-7.0/ext/reflection/tests/ |
H A D | ReflectionFunction_isDisabled_basic.phpt | 11 disable_functions=is_file 14 $rc = new ReflectionFunction('is_file');
|
/PHP-7.0/ext/pcre/ |
H A D | upgrade-pcre.php | 55 if (is_file($tmp = $newfile . '.generic') || is_file($tmp = $newfile . '.dist')) { 60 if (!is_file($newfile)) {
|
/PHP-7.0/ext/zlib/tests/ |
H A D | zlib_scheme_stat_basic2.phpt | 15 echo "is_file="; 16 var_dump(is_file($srcFile)); 33 is_file=bool(false)
|
/PHP-7.0/ext/session/tests/ |
H A D | bug61470.phpt | 14 var_dump(is_file($file1)); 19 var_dump(is_file($file2));
|
/PHP-7.0/ext/zip/tests/ |
H A D | bug14962.phpt | 19 if (!is_file($dir . "/__14962.zip")) { 27 if (is_file($fullpath)) {
|
/PHP-7.0/ext/standard/tests/file/windows_links/ |
H A D | bug48746_1.phpt | 39 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-7.0/ext/curl/tests/ |
H A D | bug48207.phpt | 42 is_file($tempfile) and @unlink($tempfile); 43 isset($tempname) and is_file($tempname) and @unlink($tempname);
|
/PHP-7.0/ext/phar/tests/tar/ |
H A D | tar_003.phpt | 36 echo (is_file($alias . '/' . $v) ? "file\n" : "dir\n"); 45 echo (is_file($alias . '/' . $v) ? "file\n" : "dir\n");
|
/PHP-7.0/ext/opcache/tests/ |
H A D | bug74663.phpt | 19 var_dump(is_file($file));
|