/PHP-7.4/ext/standard/tests/file/ |
H A D | unlink_variation1-win32-mb.phpt | 15 /* Delete file having default permission but its dir having readonly permission 16 Delete file having readonly permission but dir having default permission 23 // temp dir name used here 29 // create temp dir 35 echo "-- Unlink file having default permission and its dir having read only permission --\n"; 37 // on windows dir permission is not respected 43 // remove the dir 48 // create the temp dir 66 // remove temp dir 74 -- 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 | tempnam_variation7.phpt | 16 /* Passing invalid/non-existing args for $dir, 33 "/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 95 File created in => temp dir 101 File created in => temp dir 119 File created in => temp dir [all …]
|
H A D | disk_free_space_variation.phpt | 24 mkdir($file_path.$dir); 28 $file_path.$dir, 29 $file_path."/.".$dir, 32 $file_path."".$dir."/", 33 $file_path."/.".$dir."/", 36 $file_path.$dir."//", 37 $file_path."/.".$dir."//", 38 $file_path."/./".$dir."//", 41 $file_path.$dir.chr(0), 42 $file_path."/.".$dir.chr(0), [all …]
|
H A D | unlink_variation1.phpt | 16 /* Delete file having default permission but its dir having readonly permission 17 Delete file having readonly permission but dir having default permission 23 // temp dir name used here 29 // create temp dir 35 echo "-- Unlink file having default permission and its dir having read only permission --\n"; 42 // remove the dir 47 echo "\n-- Unlinking file without write permission, its dir having default permission --\n"; 48 // create the temp dir 60 // remove temp dir 67 -- Unlink file having default permission and its dir having read only permission -- [all …]
|
H A D | rename_variation1-win32.phpt | 26 /* Testing a dir with trailing slash */ 29 /* Testing dir with double trailing slashes */ 44 // create the src dir 46 // rename the src dir to a new dir in dest dir 48 // ensure that dir was renamed 52 // remove the new dir
|
H A D | tempnam_variation7-win32.phpt | 16 /* Passing invalid/non-existing args for $dir, 33 "/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 90 File created in => temp dir 96 File created in => temp dir 114 File created in => temp dir [all …]
|
H A D | fopen_variation12.phpt | 26 echo "Not created in working dir\n"; 29 echo "created in working dir\n"; 38 echo "Not created in script dir\n"; 41 echo "created in script dir\n"; 49 created in working dir 50 Not created in script dir
|
/PHP-7.4/ext/opcache/tests/ |
H A D | revalidate_path_01.phpt | 14 $dir = __DIR__; 15 $dir1 = "$dir/test1"; 16 $dir2 = "$dir/test2"; 17 $link = "$dir/test"; 20 $main = "$dir/main.php"; 59 $dir = __DIR__; 60 $dir1 = "$dir/test1"; 61 $dir2 = "$dir/test2"; 62 $link = "$dir/test"; 65 $main = "$dir/main.php";
|
/PHP-7.4/ext/standard/tests/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";
|
H A D | scandir_variation5.phpt | 12 /* Prototype : array scandir(string $dir [, int $sorting_order [, resource $context]]) 14 * Source code: ext/standard/dir.c 18 * remove the execute permission from the parent dir and test scandir() on child dir 29 * |-> child_dir ( child dir) 51 // remove the execute permisson from parent dir, allowing all permission for sub dir 52 chmod($sub_dir_path, 0777); // all permisson to sub dir 79 Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d 86 Warning: scandir(%s/scandir_variation5/sub_dir/child_dir): failed to open dir: %s in %s on line %d
|
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 * Prototype : object dir(string $directory[, resource $context]) 8 * Source code: ext/standard/dir.c 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 ***
|
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) { 45 test dir()
|
/PHP-7.4/ext/standard/tests/file/windows_mb_path/ |
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") 119 remove_data($id, $dir . DIRECTORY_SEPARATOR . $object); 121 unlink($dir . DIRECTORY_SEPARATOR . $object); 125 rmdir($dir); [all …]
|
H A D | test_readdir_mb_names.phpt | 2 Test readdir() with a dir for multibyte filenames 62 filename: . : filetype: dir 63 filename: .. : filetype: dir 66 filename: tschüß3 : filetype: dir 68 filename: Voláçao3 : filetype: dir 71 filename: żółć : filetype: dir 75 filename: привет3 : filetype: dir 77 filename: テストマルチバイト・パス42 : filetype: dir 79 filename: 測試多字節路徑5 : filetype: dir
|
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-7.4/ext/phar/tests/ |
H A D | bug77586.phpt | 7 $dir = __DIR__."/bug77586"; 8 $phar = new PharData($dir . "/bug77586.tar"); 9 $phar->buildFromDirectory($dir . "/files"); 13 $dir = __DIR__."/bug77586"; 14 unlink($dir . "/bug77586.tar");
|
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__);
|
/PHP-7.4/ext/standard/tests/streams/ |
H A D | bug49936_win32.phpt | 13 $dir = 'ftp://your:self@localhost/'; 15 var_dump(opendir($dir)); 16 var_dump(opendir($dir)); 23 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d 29 Warning: opendir(ftp://...@localhost/): failed to open dir: operation failed in %s on line %d
|
/PHP-7.4/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");
|
H A D | bug42364.phpt | 5 $dir = __DIR__ . '/bug42364'; 6 @mkdir($dir); 7 touch($dir . '/test'); 10 $it = new DirectoryIterator($dir);
|
/PHP-7.4/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);
|