Home
last modified time | relevance | path

Searched refs:dir (Results 76 – 100 of 533) sorted by relevance

12345678910>>...22

/PHP-5.4/ext/standard/tests/file/
H A Dis_dir_variation1.phpt2 Test is_dir() function: usage variations - dir/subdir
14 echo "-- Testing is_dir() with an empty dir --\n";
20 echo "-- Testing is_dir() with a subdir in base dir --\n";
36 -- Testing is_dir() with an empty dir --
38 -- Testing is_dir() with a subdir in base dir --
H A Dsymlink_link_linkinfo_is_link_variation7.phpt28 $dir = "$file_path/symlink_link_linkinfo_is_link_variation7";
29 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp";
31 $linkname = "$dir/symlink_link_linkinfo_is_link_link_variation7.tmp";
33 $dirname = "$dir/home/test";
69 $dir = "$file_path/symlink_link_linkinfo_is_link_variation7";
70 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp";
72 rmdir("$dir/home/test");
73 rmdir("$dir/home");
74 rmdir($dir);
H A Dflock_basic.phpt11 echo "*** Testing flock() fun with file and dir ***\n";
22 mkdir("$file_path/dir");
23 $dir_handle = opendir("$file_path/dir");
29 rmdir("$file_path/dir");
34 *** Testing flock() fun with file and dir ***
H A Ddisk_total_space_basic.phpt18 $dir = "/disk_total_space";
20 mkdir($file_path.$dir);
21 var_dump( disk_total_space($file_path.$dir) );
22 $fh = fopen($file_path.$dir."/disk_total_space.tmp", "w");
28 var_dump( disk_total_space($file_path.$dir) );
H A Dfileinode_variation.phpt71 mkdir("$file_path/dir");
72 print( fileinode("$file_path/dir") )."\n";
75 mkdir("$file_path/dir/subdir");
76 print( fileinode("$file_path/dir/subdir") )."\n";
80 print( fileinode(b"$file_path/dir") )."\n";
82 print( fileinode(b"$file_path/dir/subdir") );
84 rmdir("$file_path/dir/subdir");
85 rmdir("$file_path/dir");
H A D005_error.phpt27 var_dump( fileatime("/no/such/file/or/dir") );
28 var_dump( filemtime("/no/such/file/or/dir") );
29 var_dump( filectime("/no/such/file/or/dir") );
30 var_dump( touch("/no/such/file/or/dir", 10) );
46 var_dump( fileatime("/no/such/file/or/dir", "string") );
47 var_dump( filemtime("/no/such/file/or/dir", 100) );
48 var_dump( filectime("/no/such/file/or/dir", TRUE) );
49 var_dump( touch("/no/such/file/or/dir", 10, 100, 123) );
63 Warning: fileatime(): stat failed for /no/such/file/or/dir in %s on line %d
66 Warning: filemtime(): stat failed for /no/such/file/or/dir in %s on line %d
[all …]
H A Dlstat_stat_variation9.phpt21 /* test the effects on stats by deleting file/subdir from a dir
26 /* first create the dir/subdir and files, record the stat */
27 @rmdir("$file_path/lstat_stat_variation9/"); // ensure that dir doesn't exists
28 mkdir("$file_path/lstat_stat_variation9/"); // temp dir
30 // creating and deleting subdir and files in the dir
32 @rmdir("$dirname/lstat_stat_variation9_subdir"); // ensure that dir doesn't exists
H A Dfopen_variation7.phpt15 $thisTestDir = basename(__FILE__, ".php") . ".dir";
41 echo "Not created in working dir\n";
44 echo "created in working dir\n";
62 created in working dir
64 created in working dir
H A Dfopen_variation9.phpt15 $thisTestDir = basename(__FILE__, ".php") . ".dir";
41 echo "Not created in working dir\n";
44 echo "created in working dir\n";
62 created in working dir
64 created in working dir
/PHP-5.4/ext/phar/tests/
H A Dopendir.phpt13 $a = opendir("dir");
20 $a['dir/file1.txt'] = 'hi';
21 $a['dir/file2.txt'] = 'hi2';
22 $a['dir/file3.txt'] = 'hi3';
39 Warning: opendir(phar://): failed to open dir: phar error: no directory in "phar://", must have at …
42 Warning: opendir(phar://hi.phar): failed to open dir: phar error: invalid url or non-existent phar …
H A Dphar_extract3.phpt37 $dir = dirname(__FILE__) . '/test/';
38 @unlink($dir . 'stuff.txt');
39 @unlink($dir . 'nonsense.txt');
40 @rmdir($dir);
H A Dfopen.phpt19 $a = fopen("dir/file1.txt", "r");
27 $a['dir/file1.txt'] = 'hi';
28 $a['dir/file2.txt'] = 'hi2';
29 $a['dir/file3.txt'] = 'hi3';
31 set_include_path("phar://" . __FILE__ . "/dir" . PATH_SEPARATOR . "phar://" . __FILE__);
/PHP-5.4/ext/standard/tests/dir/
H A Ddir_variation3.phpt2 Test dir() function : usage variations - different directory permissions
23 * Source code: ext/standard/dir.c
28 * to see if dir() function opens the directory successfully.
31 echo "*** Testing dir() : different directory permissions ***";
60 // try to remove the dir if exists & create
64 @rmdir ($dir_path); // try n delete the dir
66 // create the dir now
69 // change the dir permisson to test dir on it
72 // try to get dir handle
73 $d = dir($dir_path);
[all …]
H A Dopendir_variation5.phpt22 * Source code: ext/standard/dir.c
26 * remove the execute permission from the parent dir and test opendir() on child dir
36 * |-> child_dir ( child dir)
59 // remove the execute permisson from parent dir, allowing all permission for sub dir
60 chmod($sub_dir_path, 0777); // all permisson to sub dir
96 Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
101 Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
H A Dscandir_variation6.phpt11 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
13 * Source code: ext/standard/dir.c
17 * Pass a directory path using wildcards as $dir argument to test how scandir() behaves
55 Warning: scandir(%s/scandir_var*): failed to open dir: %s in %s on line %d
60 Warning: scandir(%s/*): failed to open dir: %s in %s on line %d
67 Warning: scandir(%s/scandir_variation6/sub_dir?): failed to open dir: %s in %s on line %d
72 Warning: scandir(%s/scandir_variation6/sub?dir1): failed to open dir: %s in %s on line %d
H A Dscandir_error1.phpt5 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
7 * Source code: ext/standard/dir.c
22 $dir = dirname(__FILE__) . '/scandir_error';
23 mkdir($dir);
27 var_dump( scandir($dir, $sorting_order, $context, $extra_arg) );
/PHP-5.4/ext/standard/tests/streams/
H A Dbug49936.phpt11 $dir = 'ftp://your:self@localhost/';
13 var_dump(@opendir($dir));
14 var_dump(@opendir($dir));
/PHP-5.4/win32/
H A Dreaddir.c22 DIR *opendir(const char *dir) in opendir() argument
31 if (!VCWD_REALPATH(dir, resolved_path_buff)) { in opendir()
64 dp->dir = strdup(resolved_path_buff); in opendir()
129 if (dp->dir) in closedir()
130 free(dp->dir); in closedir()
149 filespec = (char *)malloc(strlen(dp->dir) + 2 + 1); in rewinddir()
154 strcpy(filespec, dp->dir); in rewinddir()
/PHP-5.4/
H A DMakefile.gcov19 dir=lcov_data/`dirname $$x`; \
20 test -d "$$dir" || $(mkinstalldirs) "$$dir"; \
48 …for dir in ext/bcmath/libbcmath ext/fileinfo/libmagic ext/gd/libgd ext/mbstring/libmbfl ext/mbstri…
49 test -d lcov_data/$$dir && rm -rf lcov_data/$$dir ; \
/PHP-5.4/ext/spl/tests/
H A Dbug54291.phpt2 Bug #54291 (Crash iterating DirectoryIterator for dir name starting with \0)
5 $dir = new DirectoryIterator("\x00/abc");
6 $dir->isFile();
/PHP-5.4/ext/phar/tests/tar/
H A Ddir.phpt24 mkdir($pname . '/another/dir/');
25 var_dump($phar['another/dir']->isDir());
26 rmdir($pname . '/another/dir/');
29 var_dump(file_exists($pname . '/another/dir/'));
31 var_dump(file_exists($pname3 . '/another/dir/'));
/PHP-5.4/ext/phar/tests/zip/
H A Ddir.phpt23 mkdir($pname . '/another/dir/');
24 var_dump($phar['another/dir']->isDir());
25 rmdir($pname . '/another/dir/');
28 var_dump(file_exists($pname . '/another/dir/'));
30 var_dump(file_exists($pname3 . '/another/dir/'));
/PHP-5.4/ext/zlib/tests/
H A Dgzopen_variation5.phpt20 $thisTestDir = "gzopenVariation5.dir";
45 echo "Not created in working dir\n";
48 echo "created in working dir\n";
67 created in working dir
69 created in working dir
/PHP-5.4/ext/gd/tests/
H A Dcreatefromstring.phpt10 $dir = dirname(__FILE__);
15 imagepng($im, $dir . '/tc.png');
26 unlink($dir . '/tc.png');
35 imagepng($im, $dir . '/p.png');
50 unlink($dir . '/p.png');
/PHP-5.4/tests/security/
H A Dopen_basedir_opendir.phpt32 Warning: opendir(../bad): failed to open dir: %s in %s on line %d
37 Warning: opendir(../bad/bad.txt): failed to open dir: %s in %s on line %d
42 Warning: opendir(..): failed to open dir: %s in %s on line %d
47 Warning: opendir(../): failed to open dir: %s in %s on line %d
52 Warning: opendir(/): failed to open dir: %s in %s on line %d
57 Warning: opendir(../bad/.): failed to open dir: %s in %s on line %d
62 Warning: opendir(%s/test/bad/bad.txt): failed to open dir: %s in %s on line %d
67 Warning: opendir(%s/test/bad/../bad/bad.txt): failed to open dir: %s in %s on line %d

Completed in 28 milliseconds

12345678910>>...22