Home
last modified time | relevance | path

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

12345678910>>...22

/php-src/ext/standard/tests/file/windows_mb_path/
H A Dtest_long_path_bug30730.phpt14 $dir = __DIR__ . DIRECTORY_SEPARATOR . "test_bug30730";
15 $file = $dir . DIRECTORY_SEPARATOR . "test_file";
17 var_dump(mkdir($dir));
26 $dest_dir =str_pad($dir, 200, '0');
29 var_dump(rename($dir, $dest_dir));
/php-src/ext/standard/tests/file/
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 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.phpt11 /* Testing is_dir() with dir, soft & hard link to dir,
16 echo "*** Testing is_dir() with dir and links to dir ***\n";
17 echo "-- With dir --\n";
29 …ir_variation2", $file_path."/is_dir_variation2_link"); //Not permitted to create hard-link to a dir
75 *** Testing is_dir() with dir and links to dir ***
76 -- With dir --
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 ***
/php-src/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-src/ext/spl/tests/
H A Dbug42364.phpt5 $dir = __DIR__ . '/bug42364';
6 @mkdir($dir);
7 touch($dir . '/test');
10 $it = new DirectoryIterator($dir);
/php-src/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-src/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-src/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-src/ext/pcre/pcre2lib/sljit/allocator_src/
H A DsljitProtExecAllocatorPosix.c58 char *dir; in create_tempfile() local
73 dir = secure_getenv("TMPDIR"); in create_tempfile()
75 if (dir) { in create_tempfile()
76 size_t len = strlen(dir); in create_tempfile()
78 if ((stat(dir, &st) == 0) && S_ISDIR(st.st_mode)) { in create_tempfile()
79 memcpy(tmp_name, dir, len + 1); in create_tempfile()
/php-src/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-src/scripts/dev/
H A Dtidy.php9 $dir = $argv[1]; variable
11 $dir = __DIR__ . '/../..'; variable
13 if (!is_dir($dir)) {
14 echo "Directory $dir does not exist.\n";
19 new RecursiveDirectoryIterator($dir),

Completed in 37 milliseconds

12345678910>>...22