/PHP-8.2/ext/standard/tests/dir/ |
H A D | scandir_variation9.phpt | 16 $dir = __DIR__ . '/scandir_variation9'; 17 mkdir($dir); 18 @create_files($dir, 2); 24 var_dump( scandir($dir, $sorting_order) ); 27 delete_files($dir, 2); 31 $dir = __DIR__ . '/scandir_variation9'; 32 rmdir($dir);
|
H A D | dir_variation5.phpt | 2 Test dir() function : usage variations - open a file instead of directory 12 * Passing a file as argument to dir() function instead of a directory 16 echo "*** Testing dir() : open a file instead of a directory ***\n"; 19 $d = dir(__FILE__); 25 *** Testing dir() : open a file instead of a directory *** 27 Warning: dir(%s): Failed to open directory: %s in %s on line %d
|
H A D | scandir_variation9-win32-mb.phpt | 22 $dir = __DIR__ . '/私はガラスを食べられますscandir_variation9'; 23 mkdir($dir); 24 @create_files($dir, 2, "numeric", 0755, 1, "w", "私はガラスを食べられますfile"); 30 var_dump( scandir($dir, $sorting_order) ); 33 delete_files($dir, 2, "私はガラスを食べられますfile"); 37 $dir = __DIR__ . '/私はガラスを食べられますscandir_variation9'; 38 rmdir($dir);
|
H A D | bug78220.phpt | 10 foreach ($onedrive_dirs as $dir) { 11 if ($dir && scandir($dir) === FALSE) { 12 echo "can't scan $dir\n";
|
/PHP-8.2/ext/zip/tests/ |
H A D | utils.inc | 31 function rmdir_rf($dir) { 32 if ($handle = opendir($dir)) { 35 if (is_dir($dir . '/' . $item)) { 36 rmdir_rf($dir . '/' . $item); 38 unlink($dir . '/' . $item); 43 rmdir($dir);
|
/PHP-8.2/ext/opcache/tests/ |
H A D | revalidate_path_01.phpt | 13 $dir = __DIR__; 14 $dir1 = "$dir/test1"; 15 $dir2 = "$dir/test2"; 16 $link = "$dir/test"; 19 $main = "$dir/main.php"; 58 $dir = __DIR__; 59 $dir1 = "$dir/test1"; 60 $dir2 = "$dir/test2"; 61 $link = "$dir/test"; 64 $main = "$dir/main.php";
|
/PHP-8.2/ext/standard/tests/file/ |
H A D | unlink_variation1-win32.phpt | 12 /* Delete file having default permission but its dir having readonly permission 13 Delete file having readonly permission but dir having default permission 19 // temp dir name used here 25 // create temp dir 31 echo "-- Unlink file having default permission and its dir having read only permission --\n"; 33 // on windows dir permission is not respected 39 // remove the dir 44 // create the temp dir 62 // remove temp dir 69 -- Unlink file having default permission and its dir having read only permission -- [all …]
|
H A D | unlink_variation1-win32-mb.phpt | 12 /* Delete file having default permission but its dir having readonly permission 13 Delete file having readonly permission but dir having default permission 20 // temp dir name used here 26 // create temp dir 32 echo "-- Unlink file having default permission and its dir having read only permission --\n"; 34 // on windows dir permission is not respected 40 // remove the dir 45 // create the temp dir 63 // remove temp dir 71 -- Unlink file having default permission and its dir having read only permission -- [all …]
|
H A D | unlink_variation1.phpt | 13 /* Delete file having default permission but its dir having readonly permission 14 Delete file having readonly permission but dir having default permission 20 // temp dir name used here 26 // create temp dir 32 echo "-- Unlink file having default permission and its dir having read only permission --\n"; 39 // remove the dir 44 echo "\n-- Unlinking file without write permission, its dir having default permission --\n"; 45 // create the temp dir 57 // remove temp dir 64 -- Unlink file having default permission and its dir having read only permission -- [all …]
|
H A D | rename_variation1.phpt | 21 /* Testing a dir with trailing slash */ 24 /* Testing dir with double trailing slashes */ 37 // create the src dir 39 // rename the src dir to a new dir in dest dir 41 // ensure that dir was renamed 45 // remove the new dir
|
H A D | rename_variation1-win32.phpt | 22 /* Testing a dir with trailing slash */ 25 /* Testing dir with double trailing slashes */ 40 // create the src dir 42 // rename the src dir to a new dir in dest dir 44 // ensure that dir was renamed 48 // remove the new dir
|
H A D | fopen_variation12.phpt | 20 echo "Not created in working dir\n"; 23 echo "created in working dir\n"; 32 echo "Not created in script dir\n"; 35 echo "created in script dir\n"; 42 created in working dir 43 Not created in script dir
|
H A D | tempnam_variation7-win32.phpt | 2 Test tempnam() function: usage variations - invalid/non-existing dir 12 /* Passing invalid/non-existing args for $dir, 28 "/no/such/file/dir", 54 echo "temp dir\n"; 72 File created in => temp dir 78 File created in => temp dir 82 File created in => temp dir 86 File created in => temp dir 92 File created in => temp dir 102 File created in => temp dir [all …]
|
H A D | tempnam_variation7.phpt | 2 Test tempnam() function: usage variations - invalid/non-existing dir 12 /* Passing invalid/non-existing args for $dir, 28 "/no/such/file/dir", 56 echo "temp dir\n"; 77 File created in => temp dir 83 File created in => temp dir 87 File created in => temp dir 91 File created in => temp dir 97 File created in => temp dir 107 File created in => temp dir [all …]
|
H A D | is_dir_variation1.phpt | 2 Test is_dir() function: usage variations - dir/subdir 9 echo "-- Testing is_dir() with an empty dir --\n"; 15 echo "-- Testing is_dir() with a subdir in base dir --\n"; 31 -- Testing is_dir() with an empty dir -- 33 -- Testing is_dir() with a subdir in base dir --
|
/PHP-8.2/ext/standard/tests/directory/ |
H A D | bug74589_utf8.phpt | 19 $dir = __DIR__ . DIRECTORY_SEPARATOR . $item; 20 $test_file = $dir . DIRECTORY_SEPARATOR . "test.php"; 22 mkdir($dir); 42 $dir = __DIR__ . DIRECTORY_SEPARATOR . $item; 43 $test_file = $dir . DIRECTORY_SEPARATOR . "test.php"; 45 rmdir($dir);
|
/PHP-8.2/ext/standard/tests/file/windows_mb_path/ |
H A D | test_readdir_mb_names.phpt | 2 Test readdir() with a dir for multibyte filenames 61 filename: . : filetype: dir 62 filename: .. : filetype: dir 65 filename: tschüß3 : filetype: dir 67 filename: Voláçao3 : filetype: dir 70 filename: żółć : filetype: dir 74 filename: привет3 : filetype: dir 76 filename: テストマルチバイト・パス42 : filetype: dir 78 filename: 測試多字節路徑5 : filetype: dir
|
H A D | util.inc | 98 echo "failed to create dir '$full'\n"; 108 function remove_data($id, $dir = NULL) 110 if (!$dir) { 111 $dir = dirname(__FILE__) . DIRECTORY_SEPARATOR . $id; 114 if (is_dir($dir)) { 115 $objects = scandir($dir); 118 if (filetype($dir . DIRECTORY_SEPARATOR . $object) == "dir") 121 unlink($dir . DIRECTORY_SEPARATOR . $object); 125 rmdir($dir); 143 if (0 === strpos($id, "dir")) { [all …]
|
H A D | test_long_path_bug30730.phpt | 14 $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-8.2/ext/phar/tests/ |
H A D | file_get_contents.phpt | 13 echo file_get_contents("dir/file1.txt"); 16 $a['dir/file1.txt'] = 'hi'; 17 $a['dir/file2.txt'] = 'hi2'; 18 $a['dir/file3.txt'] = 'hi3'; 21 set_include_path("phar://" . __FILE__ . "/dir" . PATH_SEPARATOR . "phar://" . __FILE__);
|
H A D | readfile.phpt | 13 readfile("dir/file1.txt"); 16 $a['dir/file1.txt'] = 'hi'; 17 $a['dir/file2.txt'] = 'hi2'; 18 $a['dir/file3.txt'] = 'hi3'; 21 set_include_path("phar://" . __FILE__ . "/dir" . PATH_SEPARATOR . "phar://" . __FILE__);
|
H A D | bug77586.phpt | 9 $dir = __DIR__."/bug77586"; 10 $phar = new PharData($dir . "/bug77586.tar"); 11 $phar->buildFromDirectory($dir . "/files"); 15 $dir = __DIR__."/bug77586"; 16 unlink($dir . "/bug77586.tar");
|
/PHP-8.2/ext/openssl/tests/ |
H A D | bug76296.phpt | 7 $dir = __DIR__ . '/bug76296_openbasedir'; 9 if (!is_dir($dir)) { 10 mkdir($dir); 13 ini_set('open_basedir', $dir);
|
/PHP-8.2/ext/spl/tests/ |
H A D | DirectoryIterator_getBasename_basic_test.phpt | 10 $dir = new DirectoryIterator($targetDir.DIRECTORY_SEPARATOR); 11 while(!$dir->isFile()) { 12 $dir->next(); 14 echo $dir->getBasename('.txt');
|
H A D | spl_autoload_014.phpt | 10 private $dir; 11 public function __construct($dir) { 12 $this->dir = $dir; 15 echo ("Autoloader('{$this->dir}') called with $class\n");
|