Home
last modified time | relevance | path

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

12345678910>>...22

/PHP-8.2/ext/spl/tests/
H A Dbug42364.phpt5 $dir = __DIR__ . '/bug42364';
6 @mkdir($dir);
7 touch($dir . '/test');
10 $it = new DirectoryIterator($dir);
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-8.2/ext/standard/tests/dir/
H A Ddir_bug73971.phpt19 echo "\ntest dir()\n";
20 $d = dir($base);
27 $dir = new DirectoryIterator($base);
28 foreach ($dir as $finfo) {
44 test dir()
H A Dbug71542.phpt5 $dir = basename(getcwd());
8 disk_total_space($dir) !== false,
9 disk_free_space($dir) !== false
H A Ddir_variation4.phpt2 Test dir() function : usage variations - operate on previously opened directory
6 * Testing the behavior of dir() function by trying to open a
10 echo "*** Testing dir() : operate on previously opened directory ***\n";
24 $d = dir($dir_path);
28 $e = dir($dir_path);
49 *** Testing dir() : operate on previously opened directory ***
H A Ddir_basic.phpt2 Test dir() function : basic functionality
5 echo "*** Testing dir() : basic functionality ***\n";
19 $d = dir($dir_path);
35 echo "\nTest read after closing the dir:\n";
54 *** Testing dir() : basic functionality ***
81 Test read after closing the dir:
H A Ddir_variation4-win32-mb.phpt2 Test dir() function : usage variations - operate on previously opened directory
12 * Testing the behavior of dir() function by trying to open a
16 echo "*** Testing dir() : operate on previously opened directory ***\n";
30 $d = dir($dir_path);
34 $e = dir($dir_path);
55 *** Testing dir() : operate on previously opened directory ***
/PHP-8.2/ext/standard/tests/file/
H A Dsymlink_link_linkinfo_is_link_variation7.phpt16 $dir = "$file_path/symlink_link_linkinfo_is_link_variation7";
17 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp";
19 $linkname = "$dir/symlink_link_linkinfo_is_link_link_variation7.tmp";
21 $dirname = "$dir/home/test";
61 $dir = "$file_path/symlink_link_linkinfo_is_link_variation7";
62 $filename = "$dir/symlink_link_linkinfo_is_link_variation7.tmp";
64 rmdir("$dir/home/test");
65 rmdir("$dir/home");
66 rmdir($dir);
H A Dis_dir_variation2.phpt10 /* Testing is_dir() with dir, soft & hard link to dir,
15 echo "*** Testing is_dir() with dir and links to dir ***\n";
16 echo "-- With dir --\n";
28 …ir_variation2", $file_path."/is_dir_variation2_link"); //Not permitted to create hard-link to a dir
74 *** Testing is_dir() with dir and links to dir ***
75 -- With dir --
H A Dfopen_variation5.phpt8 $thisTestDir = basename(__FILE__, ".php") . ".dir";
80 fwrite($h, "in working dir");
92 //should read the file in working dir
100 fwrite($h, "in script dir");
103 //should read the file in script dir
123 in working dir
124 in script dir
130 in working dir
131 in script dir
137 in working dir
[all …]
H A Dfopen_variation8.phpt7 $thisTestDir = basename(__FILE__, ".php") . ".dir";
79 fwrite($h, "in working dir");
91 //should read the working dir file
99 fwrite($h, "in script dir");
102 //should read the file in script dir
122 in working dir
123 in script dir
129 in working dir
130 in script dir
136 in working dir
[all …]
H A Ddisk_total_space_basic.phpt13 $dir = "/disk_total_space";
15 mkdir($file_path.$dir);
16 var_dump( disk_total_space($file_path.$dir) );
17 $fh = fopen($file_path.$dir."/disk_total_space.tmp", "w");
23 var_dump( disk_total_space($file_path.$dir) );
H A D006_error.phpt14 /* With non-existing file or dir */
15 var_dump( chmod(__DIR__ . "/no/such/file/dir", 0777) );
16 var_dump( fileperms(__DIR__ . "/no/such/file/dir") );
27 Warning: fileperms(): stat failed for %s/no/such/file/dir in %s on line %d
H A Dfopen_variation7.phpt9 $thisTestDir = basename(__FILE__, ".php") . ".dir";
34 echo "Not created in working dir\n";
37 echo "created in working dir\n";
54 created in working dir
56 created in working dir
H A Dfopen_variation9.phpt9 $thisTestDir = basename(__FILE__, ".php") . ".dir";
34 echo "Not created in working dir\n";
37 echo "created in working dir\n";
54 created in working dir
56 created in working dir
H A Dfileinode_variation.phpt67 mkdir("$file_path/dir");
68 print( fileinode("$file_path/dir") )."\n";
71 mkdir("$file_path/dir/subdir");
72 print( fileinode("$file_path/dir/subdir") )."\n";
76 print( fileinode(b"$file_path/dir") )."\n";
78 print( fileinode(b"$file_path/dir/subdir") );
80 rmdir("$file_path/dir/subdir");
81 rmdir("$file_path/dir");
H A Dis_dir_variation4.phpt5 /* Passing dir names with different notations, using slashes, wild-card chars */
9 echo "*** Testing is_dir() with different notations of dir names ***";
34 foreach($dirs_arr as $dir) {
37 var_dump( is_dir($file_path."/".$dir ) );
53 *** Testing is_dir() with different notations of dir names ***
H A Dlstat_stat_variation8.phpt15 /* test the effects on stats with creating file/subdir in a dir
19 mkdir("$file_path/lstat_stat_variation8/"); // temp dir
21 // creating and deleting subdir and files in the dir
22 echo "*** Testing stat() on dir after subdir and file is created in it ***\n";
50 *** Testing stat() on dir after subdir and file is created in it ***
/PHP-8.2/main/
H A Dphp_open_temporary_file.h32 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, zend_string **opened_path_p);
33 PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, zend_string **opened_path_p, …
34 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, zend_string **opened_path_p);
H A Dphp_open_temporary_file.c286 PHPAPI int php_open_temporary_fd_ex(const char *dir, const char *pfx, zend_string **opened_path_p, … in php_open_temporary_fd_ex() argument
298 if (!dir || *dir == '\0') { in php_open_temporary_fd_ex()
311 if ((flags & PHP_TMP_FILE_OPEN_BASEDIR_CHECK_ON_EXPLICIT_DIR) && php_check_open_basedir(dir)) { in php_open_temporary_fd_ex()
316 fd = php_do_open_temporary_file(dir, pfx, opened_path_p); in php_open_temporary_fd_ex()
327 PHPAPI int php_open_temporary_fd(const char *dir, const char *pfx, zend_string **opened_path_p) in php_open_temporary_fd() argument
329 return php_open_temporary_fd_ex(dir, pfx, opened_path_p, PHP_TMP_FILE_DEFAULT); in php_open_temporary_fd()
332 PHPAPI FILE *php_open_temporary_file(const char *dir, const char *pfx, zend_string **opened_path_p) in php_open_temporary_file() argument
335 int fd = php_open_temporary_fd(dir, pfx, opened_path_p); in php_open_temporary_file()
/PHP-8.2/ext/zlib/tests/
H A Dgzopen_variation5.phpt10 $thisTestDir = "gzopenVariation5.dir";
34 echo "Not created in working dir\n";
37 echo "created in working dir\n";
55 created in working dir
57 created in working dir
/PHP-8.2/ext/phar/tests/
H A Dfopen.phpt17 $a = fopen("dir/file1.txt", "r");
25 $a['dir/file1.txt'] = 'hi';
26 $a['dir/file2.txt'] = 'hi2';
27 $a['dir/file3.txt'] = 'hi3';
29 set_include_path("phar://" . __FILE__ . "/dir" . PATH_SEPARATOR . "phar://" . __FILE__);
H A Dphar_extract3.phpt36 $dir = __DIR__ . '/test-extract3/';
37 @unlink($dir . 'stuff.txt');
38 @unlink($dir . 'nonsense.txt');
39 @rmdir($dir);
/PHP-8.2/scripts/dev/
H A Dtidy.php8 $dir = $argv[1]; variable
10 $dir = __DIR__ . '/../..'; variable
12 if (!is_dir($dir)) {
13 echo "Directory $dir does not exist.\n";
18 new RecursiveDirectoryIterator($dir),
/PHP-8.2/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 29 milliseconds

12345678910>>...22