/PHP-8.2/ext/spl/tests/ |
H A D | bug42364.phpt | 5 $dir = __DIR__ . '/bug42364'; 6 @mkdir($dir); 7 touch($dir . '/test'); 10 $it = new DirectoryIterator($dir);
|
H A D | bug54291.phpt | 2 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 D | dir_bug73971.phpt | 19 echo "\ntest dir()\n"; 20 $d = dir($base); 27 $dir = new DirectoryIterator($base); 28 foreach ($dir as $finfo) { 44 test dir()
|
H A D | bug71542.phpt | 5 $dir = basename(getcwd()); 8 disk_total_space($dir) !== false, 9 disk_free_space($dir) !== false
|
H A D | dir_variation4.phpt | 2 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 D | dir_basic.phpt | 2 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 D | dir_variation4-win32-mb.phpt | 2 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 D | symlink_link_linkinfo_is_link_variation7.phpt | 16 $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 D | is_dir_variation2.phpt | 10 /* 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 D | fopen_variation5.phpt | 8 $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 D | fopen_variation8.phpt | 7 $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 D | disk_total_space_basic.phpt | 13 $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 D | 006_error.phpt | 14 /* 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 D | fopen_variation7.phpt | 9 $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 D | fopen_variation9.phpt | 9 $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 D | fileinode_variation.phpt | 67 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 D | is_dir_variation4.phpt | 5 /* 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 D | lstat_stat_variation8.phpt | 15 /* 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 D | php_open_temporary_file.h | 32 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 D | php_open_temporary_file.c | 286 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 D | gzopen_variation5.phpt | 10 $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 D | fopen.phpt | 17 $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 D | phar_extract3.phpt | 36 $dir = __DIR__ . '/test-extract3/'; 37 @unlink($dir . 'stuff.txt'); 38 @unlink($dir . 'nonsense.txt'); 39 @rmdir($dir);
|
/PHP-8.2/scripts/dev/ |
H A D | tidy.php | 8 $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 D | dir.phpt | 23 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/'));
|