Searched refs:is_dir (Results 1 – 25 of 107) sorted by relevance
12345
2 Test is_dir() function: basic functionality5 echo "*** Testing is_dir(): basic functionality ***\n";7 var_dump( is_dir($file_path) );9 var_dump( is_dir(".") );10 var_dump( is_dir(__FILE__) ); // expected: bool(false)14 var_dump( is_dir($dir_name) );16 echo "*** Testing is_dir() for its return value type ***\n";17 var_dump( is_bool( is_dir($file_path) ) );18 var_dump( is_bool( is_dir("/no/such/dir") ) );29 *** Testing is_dir(): basic functionality ***[all …]
2 Test is_dir() function: usage variations - dir/subdir5 /* Testing is_dir() with base and sub dirs */9 echo "-- Testing is_dir() with an empty dir --\n";12 var_dump( is_dir($dirname) );15 echo "-- Testing is_dir() with a subdir in base dir --\n";18 var_dump( is_dir($subdirname) );19 var_dump( is_dir($dirname) );31 -- Testing is_dir() with an empty dir --33 -- Testing is_dir() with a subdir in base dir --
2 Test is_dir() function: usage variations - links10 /* Testing is_dir() with dir, soft & hard link to dir,15 echo "*** Testing is_dir() with dir and links to dir ***\n";19 var_dump( is_dir($dirname) );24 var_dump( is_dir($file_path."/is_dir_variation2_symlink") ); //is_dir() resolves symlinks29 var_dump( is_dir($file_path."/is_dir_variation2_link") );36 var_dump( is_dir($filename) );41 var_dump( is_dir($file_path."/is_dir_variation2_symlink.tmp") );46 var_dump( is_dir($file_path."/is_dir_variation2_link.tmp") );74 *** Testing is_dir() with dir and links to dir ***[all …]
2 Test is_dir() function: usage variations - invalid arguments7 /* Passing invalid arguments to is_dir() */9 echo "*** Testing is_dir() with Invalid arguments: expected bool(false) ***\n";25 var_dump( is_dir($dirname) );29 *** Testing is_dir() with Invalid arguments: expected bool(false) ***
9 var_dump(is_dir($dirname)); // Expected: true11 var_dump(is_dir($dirname)); // Expected: false12 var_dump(is_dir($toname)); // Expected: true14 var_dump(is_dir($toname)); // Expected: false
2 Test lstat() and stat() functions: usage variations - effects of is_dir()9 /* test the effects of is_dir() on stats of a dir */19 // is_dir() on a directory20 echo "*** Testing stat() on directory after using is_dir() on it ***\n";25 var_dump( is_dir($dirname) );48 *** Testing stat() on directory after using is_dir() on it ***
2 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";28 // is_dir() on a directory35 var_dump( is_dir($old_dirname) );74 with is_dir() and is_file() functions ***
6 var_dump(is_dir("bug45181_x"));8 var_dump(is_dir("bug45181_x"));
7 var_dump(is_dir($dir));9 var_dump(is_dir($dir));
2 Test is_dir() function: usage variations - diff. path notations9 echo "*** Testing is_dir() with different notations of dir names ***";37 var_dump( is_dir($file_path."/".$dir ) );53 *** Testing is_dir() with different notations of dir names ***
8 if (is_dir('a/b')) {11 if (is_dir('./a')) {
17 var_dump(is_dir("chroot_001_x"));19 var_dump(is_dir("chroot_001_x"));
8 var_dump(is_dir('file:///datafoo:test'));9 var_dump(is_dir('datafoo:test'));
7 var_dump(is_dir($dir));
21 var_dump( is_dir($dir) );24 var_dump( is_dir($file) );
2 Bug #64699 is_dir() is inaccurate result on Windows with japanese locale.36 $type2= is_dir($path) ? 'dir' : 'file';38 … echo "filetype()[".str_pad($type, 4)."] == is_dir()[".str_pad($type2, 4)."] -> $comp: {$file}\n";53 filetype()[dir ] == is_dir()[dir ] -> OK: .54 filetype()[dir ] == is_dir()[dir ] -> OK: ..55 filetype()[dir ] == is_dir()[dir ] -> OK: a56 filetype()[dir ] == is_dir()[dir ] -> OK: şŞıİğĞ57 filetype()[dir ] == is_dir()[dir ] -> OK: ソ58 filetype()[dir ] == is_dir()[dir ] -> OK: ゾ59 filetype()[dir ] == is_dir()[dir ] -> OK: 多国語[all …]
8 test_open_basedir("is_dir");16 *** Testing open_basedir configuration [is_dir] ***23 Warning: is_dir(): open_basedir restriction in effect. File(../bad) is not within the allowed path(…26 Warning: is_dir(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allow…29 Warning: is_dir(): open_basedir restriction in effect. File(..) is not within the allowed path(s): …32 Warning: is_dir(): open_basedir restriction in effect. File(../) is not within the allowed path(s):…35 Warning: is_dir(): open_basedir restriction in effect. File(/) is not within the allowed path(s): (…38 Warning: is_dir(): open_basedir restriction in effect. File(../bad/.) is not within the allowed pat…41 Warning: is_dir(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the …47 Warning: is_dir(): open_basedir restriction in effect. File(./../.) is not within the allowed path(…[all …]
3 var_dump(file_exists("phar://" . __FILE__ . "/test"), is_dir("phar://" . __FILE__ . "/test"));6 var_dump(file_exists("phar://" . __FILE__ . "/test"), is_dir("phar://" . __FILE__ . "/test"));
9 var_dump(file_exists("phar://" . __FILE__ . "/test"), is_dir("phar://" . __FILE__ . "/test"));12 var_dump(file_exists("phar://" . __FILE__ . "/test"), is_dir("phar://" . __FILE__ . "/test"));
349 if (!file_exists("$dest") || !is_dir("$dest")) {364 if (!file_exists($sasl_dest_dir) || !is_dir($sasl_dest_dir)) {396 if (!is_dir($dest)) {409 if (is_dir($fs)) {427 if (!is_dir($dest . '/tests')) {435 if(!file_exists($directory) || !is_dir($directory)) {444 if($file != '.' && $file != '..' && $file != '.svn' && is_dir($full_path)) {446 if (!is_dir($dest . '/' . $full_path)) {490 if (!is_dir($test_dir)) {551 if (is_dir($item)) {[all …]
17 echo "is_dir=";18 var_dump(is_dir($srcFile));33 is_dir=bool(false)
20 var_dump(is_dir($pname . '/b'));21 var_dump(is_dir($pname . '/d'));22 var_dump(is_dir($pname . '/b/c.php'));
218 } else if (!is_dir($options['skel'])) {351 if (is_dir($test)) {378 if (!$options['dir'] || !is_dir($options['dir'])) {380 } else if (is_dir($options['dir'] . $options['ext'])) {
158 if (!file_exists($sessionpath) || !is_dir($sessionpath)) {202 if (is_dir('/temp') || mkdir('/temp')) {284 is_dir($f) ? @rmdir($f) : @unlink($f);285 if (file_exists($f) && is_dir($f)) {
35 var_dump(is_dir("mklink_junction"));36 var_dump(is_dir("$fullpath"));
Completed in 31 milliseconds