Lines Matching refs:dir
2 Test dir() function : usage variations - relative valid and invalid paths
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
18 * Checking the behavior of dir() function by passing directories which
22 echo "*** Testing dir() : checking with valid and invalid paths ***\n";
45 var_dump( dir("$dir_path1/sub_dir11/sub_dir111/..") );
46 var_dump( dir("$dir_path2/sub_dir21/../../dir_variation91") );
47 var_dump( dir("$dir_path2/sub_dir21/../../dir_variation91/sub_dir11/..") );
48 var_dump( dir("$dir_path1/sub_dir11/sub_dir111/../../../dir_variation92/sub_dir21/..") );
52 var_dump( dir("$dir_path1/sub_dir12/sub_dir111/..") );
53 var_dump( dir("$dir_path2/sub_dir21/../dir_variation91") );
54 var_dump( dir("$dir_path2/sub_dir21/../../dir_variation91/sub_dir12/..") );
55 var_dump( dir("$dir_path1/sub_dir11/sub_dir111/../../dir_variation92/sub_dir21/..") );
76 *** Testing dir() : checking with valid and invalid paths ***
106 Warning: dir(%s/dir_variation91/sub_dir12/sub_dir111/..): failed to open dir: %s in %s on line %d
109 Warning: dir(%s/dir_variation92/sub_dir21/../dir_variation91): failed to open dir: %s in %s on line…
112 Warning: dir(%s/dir_variation92/sub_dir21/../../dir_variation91/sub_dir12/..): failed to open dir: …
115 Warning: dir(%s/dir_variation91/sub_dir11/sub_dir111/../../dir_variation92/sub_dir21/..): failed to…