Home
last modified time | relevance | path

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

12345678910>>...25

/PHP-7.1/ext/standard/tests/dir/
H A Dscandir_variation5.phpt20 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]])
22 * Source code: ext/standard/dir.c
26 * remove the execute permission from the parent dir and test scandir() on child dir
37 * |-> 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
87 Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
94 Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
H A Ddir_basic.phpt2 Test dir() function : basic functionality
6 * Prototype : object dir(string $directory[, resource $context])
8 * Source code: ext/standard/dir.c
11 echo "*** Testing dir() : basic functionality ***\n";
25 $d = dir($dir_path);
41 echo "\nTest read after closing the dir:";
56 *** Testing dir() : basic functionality ***
83 Test read after closing the dir:
H A Ddir_variation4-win32-mb.phpt2 Test dir() function : usage variations - operate on previously opened directory
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
18 * Testing the behavior of dir() function by trying to open a
22 echo "*** Testing dir() : operate on previously opened directory ***\n";
36 $d = dir($dir_path);
40 $e = dir($dir_path);
61 *** Testing dir() : operate on previously opened directory ***
H A Ddir_basic-win32-mb.phpt2 Test dir() function : basic functionality
12 * Prototype : object dir(string $directory[, resource $context])
14 * Source code: ext/standard/dir.c
17 echo "*** Testing dir() : basic functionality ***\n";
31 $d = dir($dir_path);
47 echo "\nTest read after closing the dir:";
62 *** Testing dir() : basic functionality ***
89 Test read after closing the dir:
H A Dopendir_variation1.phpt13 * Source code: ext/standard/dir.c
124 Warning: opendir(0): failed to open dir: %s in %s on line %d
129 Warning: opendir(1): failed to open dir: %s in %s on line %d
134 Warning: opendir(12345): failed to open dir: %s in %s on line %d
139 Warning: opendir(-2345): failed to open dir: %s in %s on line %d
144 Warning: opendir(10.5): failed to open dir: %s in %s on line %d
149 Warning: opendir(-10.5): failed to open dir: %s in %s on line %d
164 Warning: opendir(0.5): failed to open dir: %s in %s on line %d
175 Warning: opendir(1): failed to open dir: %s in %s on line %d
183 Warning: opendir(1): failed to open dir: %s in %s on line %d
[all …]
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
95 Warning: opendir(%s/opendir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
100 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
/PHP-7.1/ext/spl/tests/
H A DDirectoryIterator_getBasename_pass_array.phpt10 $dir = new DirectoryIterator($targetDir.DIRECTORY_SEPARATOR);
11 while(!$dir->isFile()) {
12 $dir->next();
14 echo $dir->getBasename(array());
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-7.1/ext/posix/tests/
H A Dposix_mkfifo_safemode.phpt28 $dir = dirname(__FILE__) . '/foo';
29 mkdir ($dir);
30 var_dump(posix_mkfifo($dir . '/bar', 0644));
35 $dir = dirname(__FILE__) . '/foo';
36 unlink($dir . '/bar');
37 rmdir($dir);
/PHP-7.1/ext/standard/tests/file/
H A Dis_dir_variation2.phpt15 /* Testing is_dir() with dir, soft & hard link to dir,
20 echo "*** Testing is_dir() with dir and links to dir ***\n";
21 echo "-- With dir --\n";
33 …ir_variation2", $file_path."/is_dir_variation2_link"); //Not permitted to create hard-link to a dir
79 *** Testing is_dir() with dir and links to dir ***
80 -- With dir --
H A Dfopen_variation5.phpt16 $thisTestDir = basename(__FILE__, ".php") . ".dir";
89 fwrite($h, (binary) "in working dir");
101 //should read the file in working dir
109 fwrite($h, (binary) "in script dir");
112 //should read the file in script dir
133 in working dir
134 in script dir
140 in working dir
141 in script dir
147 in working dir
[all …]
H A Dfopen_variation8.phpt15 $thisTestDir = basename(__FILE__, ".php") . ".dir";
88 fwrite($h, (binary) "in working dir");
100 //should read the working dir file
108 fwrite($h, (binary) "in script dir");
111 //should read the file in script dir
132 in working dir
133 in script dir
139 in working dir
140 in script dir
146 in working dir
[all …]
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 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 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 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) );
/PHP-7.1/main/
H A Dphp_open_temporary_file.h28 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, zend_string **opened_path_p);
29 PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, zend_string **opened_path_p, …
30 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, zend_string **opened_path_p);
/PHP-7.1/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 …
/PHP-7.1/travis/
H A Dcompile.sh28 --with-jpeg-dir=/usr \
29 --with-png-dir=/usr \
33 --with-zlib-dir=/usr \
59 --with-freetype-dir=/usr \
60 --with-xpm-dir=/usr \
/PHP-7.1/ext/standard/tests/streams/
H A Dbug49936.phpt11 $dir = 'ftp://your:self@localhost/';
13 var_dump(@opendir($dir));
14 var_dump(@opendir($dir));
H A Dglob-wrapper.phpt13 $dir = opendir($spec);
14 if (!$dir) {
18 if (false === readdir($dir)) {
28 Warning: opendir(%s): failed to open dir: Operation not permitted in %s%eglob-wrapper.php on line 5
34 Warning: opendir(glob://%s): failed to open dir: operation failed in %s%eglob-wrapper.php on line 5
/PHP-7.1/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-7.1/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/'));

Completed in 44 milliseconds

12345678910>>...25