Home
last modified time | relevance | path

Searched refs:is_dir (Results 1 – 25 of 111) sorted by relevance

12345

/PHP-5.6/ext/standard/tests/file/
H A Dis_dir_basic.phpt2 Test is_dir() function: basic functionality
5 /* Prototype: bool is_dir ( string $filename );
10 echo "*** Testing is_dir(): basic functionality ***\n";
12 var_dump( is_dir($file_path) );
14 var_dump( is_dir(".") );
15 var_dump( is_dir(__FILE__) ); // expected: bool(false)
19 var_dump( is_dir($dir_name) );
22 var_dump( is_bool( is_dir($file_path) ) );
23 var_dump( is_bool( is_dir("/no/such/dir") ) );
35 *** Testing is_dir(): basic functionality ***
[all …]
H A Dis_dir_variation1.phpt2 Test is_dir() function: usage variations - dir/subdir
5 /* Prototype: bool is_dir ( string $dirname );
10 /* Testing is_dir() with base and sub dirs */
14 echo "-- Testing is_dir() with an empty dir --\n";
17 var_dump( is_dir($dirname) );
20 echo "-- Testing is_dir() with a subdir in base dir --\n";
23 var_dump( is_dir($subdirname) );
24 var_dump( is_dir($dirname) );
36 -- Testing is_dir() with an empty dir --
38 -- Testing is_dir() with a subdir in base dir --
H A Dis_dir_error.phpt2 Test is_dir() function: error conditions
5 /* Prototype: bool is_dir ( string $filename );
10 echo "*** Testing is_dir() error conditions ***";
11 var_dump( is_dir() ); // Zero No. of args
15 var_dump( is_dir($dir_name, "is_dir_error1") ); // args > expected no.of args
18 var_dump( is_dir("/no/such/dir") );
28 *** Testing is_dir() error conditions ***
29 Warning: is_dir() expects exactly 1 parameter, 0 given in %s on line %d
32 Warning: is_dir() expects exactly 1 parameter, 2 given in %s on line %d
H A Dis_dir_variation2.phpt2 Test is_dir() function: usage variations - links
10 /* Prototype: bool is_dir ( string $dirname );
15 /* Testing is_dir() with dir, soft & hard link to dir,
20 echo "*** Testing is_dir() with dir and links to dir ***\n";
24 var_dump( is_dir($dirname) );
29 var_dump( is_dir($file_path."/is_dir_variation2_symlink") ); //is_dir() resolves symlinks
34 var_dump( is_dir($file_path."/is_dir_variation2_link") );
41 var_dump( is_dir($filename) );
51 var_dump( is_dir($file_path."/is_dir_variation2_link.tmp") );
79 *** Testing is_dir() with dir and links to dir ***
[all …]
H A Dis_dir_variation3.phpt2 Test is_dir() function: usage variations - invalid arguments
5 /* Prototype: bool is_dir ( string $dirname );
10 /* Passing invalid arguments to is_dir() */
14 echo "*** Testing is_dir() with Invalid arguments: expected bool(false) ***\n";
31 var_dump( is_dir($dirname) );
38 *** Testing is_dir() with Invalid arguments: expected bool(false) ***
45 Warning: is_dir() expects parameter 1 to be a valid path, resource given in %s on line %d
H A Dbug43137.phpt9 var_dump(is_dir($dirname)); // Expected: true
11 var_dump(is_dir($dirname)); // Expected: false
12 var_dump(is_dir($toname)); // Expected: true
14 var_dump(is_dir($toname)); // Expected: false
H A Dis_dir_variation4.phpt2 Test is_dir() function: usage variations - diff. path notations
5 /* Prototype: bool is_dir ( string $dirname );
14 echo "*** Testing is_dir() with different notations of dir names ***";
41 var_dump( is_dir($file_path."/".$dir ) );
54 *** Testing is_dir() with different notations of dir names ***
81 Warning: is_dir() expects parameter 1 to be a valid path, string given in %s on line %d
86 Warning: is_dir() expects parameter 1 to be a valid path, string given in %s on line %d
H A Dlstat_stat_variation10.phpt2 Test lstat() and stat() functions: usage variations - effects of is_dir()
19 /* test the effects of is_dir() on stats of a dir */
29 // is_dir() on a directory
30 echo "*** Testing stat() on directory after using is_dir() on it ***\n";
35 var_dump( is_dir($dirname) );
53 *** Testing stat() on directory after using is_dir() on it ***
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";
33 // is_dir() on a directory
40 var_dump( is_dir($old_dirname) );
80 with is_dir() and is_file() functions ***
H A Dbug45181.phpt6 var_dump(is_dir("bug45181_x"));
8 var_dump(is_dir("bug45181_x"));
H A Dbug68335.phpt7 var_dump(is_dir($dir));
9 var_dump(is_dir($dir));
H A Dbug55124.phpt8 if (is_dir('a/b')) {
11 if (is_dir('./a')) {
H A Dchroot_001.phpt17 var_dump(is_dir("chroot_001_x"));
19 var_dump(is_dir("chroot_001_x"));
H A Dbug43353-win32.phpt13 var_dump(is_dir('file:///datafoo:test'));
14 var_dump(is_dir('datafoo:test'));
H A Dbug43353.phpt13 var_dump(is_dir('file:///datafoo:test'));
14 var_dump(is_dir('datafoo:test'));
/PHP-5.6/tests/security/
H A Dopen_basedir_is_dir.phpt8 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 …]
/PHP-5.6/ext/phar/tests/cache_list/files/
H A Dwrite3.phar3 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"));
H A Dwrite3.phar.inc9 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"));
/PHP-5.6/win32/build/
H A Dmkdist.php334 if (!file_exists("$dest") || !is_dir("$dest")) {
365 if (!is_dir($dest)) {
378 if (is_dir($fs)) {
396 if (!is_dir($dest . '/tests')) {
404 if(!file_exists($directory) || !is_dir($directory)) {
413 if($file != '.' && $file != '..' && $file != '.svn' && is_dir($full_path)) {
415 if (!is_dir($dest . '/' . $full_path)) {
459 if (!is_dir($test_dir)) {
520 if (is_dir($item)) {
548 if (is_dir($item)) {
/PHP-5.6/ext/zlib/tests/
H A Dzlib_scheme_stat_basic2.phpt17 echo "is_dir=";
18 var_dump(is_dir($srcFile));
34 is_dir=bool(false)
/PHP-5.6/ext/phar/tests/
H A Dcached_manifest_1.phpt21 var_dump(is_dir($pname . '/b'));
22 var_dump(is_dir($pname . '/d'));
23 var_dump(is_dir($pname . '/b/c.php'));
H A Dcached_manifest_1U.phpt21 var_dump(is_dir($pname . '/b'));
22 var_dump(is_dir($pname . '/d'));
23 var_dump(is_dir($pname . '/b/c.php'));
H A D019bU.phpt39 var_dump(is_dir($phar . $entry));
40 if (is_dir($phar . $entry))
/PHP-5.6/ext/phar/
H A Dshortarc.php158 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)) {
/PHP-5.6/ext/standard/tests/file/windows_links/
H A Dbug48746.phpt37 var_dump(is_dir("mklink_junction"));
38 var_dump(is_dir("$fullpath"));

Completed in 33 milliseconds

12345