/php-src/ext/standard/tests/file/windows_links/ |
H A D | bug76335.phpt | 12 $d0 = __DIR__ . DIRECTORY_SEPARATOR . "á"; 13 $d1 = __DIR__ . DIRECTORY_SEPARATOR . "a"; 15 $fn = __DIR__ . DIRECTORY_SEPARATOR . "file"; 17 $l0 = $d0 . DIRECTORY_SEPARATOR . "b"; 18 $l1 = $d1 . DIRECTORY_SEPARATOR . "b"; 26 var_dump(link($d0 . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "file", $l0)); 29 var_dump(link($d1 . DIRECTORY_SEPARATOR . ".." . DIRECTORY_SEPARATOR . "file", $l1)); 35 $d0 = __DIR__ . DIRECTORY_SEPARATOR . "á"; 36 $d1 = __DIR__ . DIRECTORY_SEPARATOR . "a"; 40 $l0 = $d0 . DIRECTORY_SEPARATOR . "b"; [all …]
|
/php-src/ext/spl/tests/ |
H A D | bug68557.phpt | 5 mkdir(__DIR__ . DIRECTORY_SEPARATOR . 'tmp'); 6 touch(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'a'); 7 touch(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'b'); 9 $d = new DirectoryIterator(__DIR__ . DIRECTORY_SEPARATOR . 'tmp'); 34 unlink(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'a'); 35 unlink(__DIR__ . DIRECTORY_SEPARATOR . 'tmp' . DIRECTORY_SEPARATOR . 'b'); 36 rmdir(__DIR__ . DIRECTORY_SEPARATOR . 'tmp');
|
H A D | RecursiveDirectoryIterator_getSubPathname_basic.phpt | 11 $targetDir = __DIR__ . DIRECTORY_SEPARATOR . $depth0 . DIRECTORY_SEPARATOR . $depth1 . DIRECTORY_SE… 13 touch($targetDir . DIRECTORY_SEPARATOR . 'getSubPathname_test_2.tmp'); 14 touch(__DIR__ . DIRECTORY_SEPARATOR . $depth0 . DIRECTORY_SEPARATOR . $depth1 . DIRECTORY_SEPARATOR… 15 touch(__DIR__ . DIRECTORY_SEPARATOR . $depth0 . DIRECTORY_SEPARATOR . 'getSubPathname_test_1.tmp'); 16 $iterator = new RecursiveDirectoryIterator(__DIR__ . DIRECTORY_SEPARATOR . $depth0); 44 $targetDir = __DIR__ . DIRECTORY_SEPARATOR . "depth02";
|
H A D | DirectoryIterator_getBasename_basic_test.phpt | 7 $targetDir = __DIR__.DIRECTORY_SEPARATOR.md5('directoryIterator::getbasename1'); 9 touch($targetDir.DIRECTORY_SEPARATOR.'getBasename_test.txt'); 10 $dir = new DirectoryIterator($targetDir.DIRECTORY_SEPARATOR); 18 $targetDir = __DIR__.DIRECTORY_SEPARATOR.md5('directoryIterator::getbasename1'); 19 unlink($targetDir.DIRECTORY_SEPARATOR.'getBasename_test.txt');
|
H A D | RecursiveDirectoryIterator_getSubPath_basic.phpt | 11 $targetDir = __DIR__ . DIRECTORY_SEPARATOR . $depth0 . DIRECTORY_SEPARATOR . $depth1 . DIRECTORY_SE… 13 touch($targetDir . DIRECTORY_SEPARATOR . 'getSubPath_test.tmp'); 14 $iterator = new RecursiveDirectoryIterator(__DIR__ . DIRECTORY_SEPARATOR . $depth0); 41 $targetDir = __DIR__.DIRECTORY_SEPARATOR . "depth01";
|
H A D | RecursiveDirectoryIterator_hasChildren.phpt | 6 $dir = __DIR__ . DIRECTORY_SEPARATOR . 'symlinktest'; 10 } elseif (!symlink(__DIR__, $dir . DIRECTORY_SEPARATOR . 'symlink')) { 32 $dir = __DIR__ . DIRECTORY_SEPARATOR . 'symlinktest'; 34 rmdir($dir . DIRECTORY_SEPARATOR . 'symlink'); 36 unlink($dir . DIRECTORY_SEPARATOR . 'symlink');
|
H A D | bug62433.phpt | 8 var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '.', $dots)); 9 var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '..', $dots)); 11 var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '.', $ndots)); 12 var_dump(in_array(__DIR__ . DIRECTORY_SEPARATOR . '..', $ndots));
|
/php-src/ext/zend_test/tests/ |
H A D | gh10370_3.phpt | 17 mkdir(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_003'); 19 $input = fopen(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370.tar', 'r'); 20 $output = fopen(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_003' . DIRECTORY_SEPARATOR . 'testfile', '… 27 var_dump(sha1_file(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_003' . DIRECTORY_SEPARATOR . 'testfile'… 34 @unlink(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_003' . DIRECTORY_SEPARATOR . 'testfile'); 35 @rmdir(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_003');
|
H A D | gh10370_1.phpt | 18 $archive = new PharData(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370.tar'); 19 var_dump($archive->extractTo(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_001', ['testfile'])); 20 var_dump(sha1_file(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_001' . DIRECTORY_SEPARATOR . 'testfile'… 27 @unlink(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_001' . DIRECTORY_SEPARATOR . 'testfile'); 28 @rmdir(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_001');
|
H A D | gh10370_2.phpt | 17 $input_file = fopen(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370.tar', 'r'); 18 file_put_contents(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_002_out.tar', $input_file); 21 var_dump(sha1_file(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370.tar')); 22 var_dump(sha1_file(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_002_out.tar')); 29 @unlink(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_002_out.tar');
|
H A D | gh10370_4.phpt | 18 $input = fopen(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370.tar', 'r'); 19 $output = fopen(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_004_out.tar', 'w'); 26 var_dump(sha1_file(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370.tar')); 27 var_dump(sha1_file(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_004_out.tar')); 35 @unlink(__DIR__ . DIRECTORY_SEPARATOR . 'gh10370_004_out.tar');
|
/php-src/ext/standard/tests/dir/ |
H A D | bug73877.phpt | 13 $base = __DIR__ . DIRECTORY_SEPARATOR . "bug73877"; 14 $dir0 = $base . DIRECTORY_SEPARATOR . "bug73877"; 15 $dir1 = $base . DIRECTORY_SEPARATOR . "Серёжка"; 16 $junk0 = $base . DIRECTORY_SEPARATOR . "Серёжка2"; 34 $base = __DIR__ . DIRECTORY_SEPARATOR . "bug73877"; 35 $dir0 = $base . DIRECTORY_SEPARATOR . "bug73877"; 36 $dir1 = $base . DIRECTORY_SEPARATOR . "Серёжка"; 37 $junk0 = $base . DIRECTORY_SEPARATOR . "Серёжка2";
|
/php-src/Zend/tests/ |
H A D | gh10469.phpt | 14 ini_set('open_basedir', ini_get('open_basedir') . $pathSeparator . '.' . DIRECTORY_SEPARATOR . '..'… 15 …', ini_get('open_basedir') . $pathSeparator . '.' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARAT… 16 …r', ini_get('open_basedir') . $pathSeparator . '.' . DIRECTORY_SEPARATOR . 'a' . DIRECTORY_SEPARAT… 17 ini_set('open_basedir', ini_get('open_basedir') . $pathSeparator . '.' . DIRECTORY_SEPARATOR . 'a');
|
/php-src/ext/ |
H A D | ext_skel.php | 159 'dir' => __DIR__ . DIRECTORY_SEPARATOR, 160 'skel' => __DIR__ . DIRECTORY_SEPARATOR . 'skeleton' . DIRECTORY_SEPARATOR, 205 … $options[$opt] = ($opt == 'dir' ? realpath($argv[$i + 1]) . DIRECTORY_SEPARATOR : $argv[$i + 1]); 308 … $new_config_script = $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $config_script; 331 …($options['skel'] . $src_file, $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $dst_file… 335 …process_source_tags($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $dst_file, $dst_file… 355 $new_test = str_replace([$options['skel'], '/'], ['', DIRECTORY_SEPARATOR], $test); 357 if (!copy($test, $options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $new_test)) { 361 …process_source_tags($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . $new_test, $new_test… 384 } else if (!mkdir($options['dir'] . $options['ext'] . DIRECTORY_SEPARATOR . 'tests')) { [all …]
|
/php-src/ext/standard/tests/file/windows_mb_path/ |
H A D | bug75063_utf8.phpt | 5 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 17 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 20 $prefix = __DIR__ . DIRECTORY_SEPARATOR . "bug75063-utf8"; 21 $d0 = $prefix . DIRECTORY_SEPARATOR . $dir_basename; 58 $prefix = __DIR__ . DIRECTORY_SEPARATOR . "bug75063-utf8"; 59 $d0 = $prefix . DIRECTORY_SEPARATOR . $dir_basename; 64 unlink($d0 . DIRECTORY_SEPARATOR . $file);
|
H A D | bug75063_cp1251.phpt | 5 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 19 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 22 $prefix = __DIR__ . DIRECTORY_SEPARATOR . "bug75063-cp1251"; 23 $d0 = $prefix . DIRECTORY_SEPARATOR . $dir_basename; 58 $prefix = __DIR__ . DIRECTORY_SEPARATOR . "bug75063-cp1251"; 59 $d0 = $prefix . DIRECTORY_SEPARATOR . $dir_basename; 64 unlink($d0 . DIRECTORY_SEPARATOR . $file);
|
H A D | test_rename_mb_names.phpt | 6 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 21 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 26 $fw_orig = $prefix . DIRECTORY_SEPARATOR . "Ελλάδα.txt"; 30 $fw_copied = $prefix . DIRECTORY_SEPARATOR . "Ελλάδα_copy.txt"; 33 $fw_renamed = $prefix . DIRECTORY_SEPARATOR . "測試多字節路徑17.txt";
|
H A D | recursive_it.phpt | 5 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 18 $dir .= DIRECTORY_SEPARATOR . str_repeat("a", 32); 20 $dir .= DIRECTORY_SEPARATOR . str_repeat("a", $need_len - strlen($dir)); 23 $fl = $dir . DIRECTORY_SEPARATOR . "hello.txt"; 27 $start = substr($dir, 0, strpos($dir, DIRECTORY_SEPARATOR, strlen(__DIR__)+1));
|
H A D | test_cwd_mb_names.phpt | 6 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 21 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 24 $dirw = $prefix . DIRECTORY_SEPARATOR . "テストマルチバイト・パス42"; 25 touch($dirw . DIRECTORY_SEPARATOR . "dummy.txt");
|
H A D | bug70903.phpt | 5 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 17 include __DIR__ . DIRECTORY_SEPARATOR . "util.inc"; 19 $prefix = __DIR__ . DIRECTORY_SEPARATOR . "testBug70903" . DIRECTORY_SEPARATOR;
|
/php-src/ext/phar/tests/ |
H A D | bug54289.phpt | 10 $base = __DIR__.DIRECTORY_SEPARATOR.'bug54289'.DIRECTORY_SEPARATOR; 21 var_dump(file_exists($outDir.DIRECTORY_SEPARATOR.'dirA'.DIRECTORY_SEPARATOR.'fileA')); 22 var_dump(file_exists($outDir.DIRECTORY_SEPARATOR.'dirA'.DIRECTORY_SEPARATOR.'fileB')); 23 var_dump(is_dir($outDir.DIRECTORY_SEPARATOR.'dirAB')); 55 $base = __DIR__.DIRECTORY_SEPARATOR.'bug54289'.DIRECTORY_SEPARATOR;
|
/php-src/ext/standard/tests/file/ |
H A D | lchgrp_basic.phpt | 10 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchgrp.txt'; 11 $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'symlink.txt'; 24 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchgrp.txt'; 25 $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'symlink.txt';
|
H A D | lchown_basic.phpt | 11 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchown_basic.txt'; 12 $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'lchown_basic_symlink.txt'; 25 $filename = __DIR__ . DIRECTORY_SEPARATOR . 'lchown_basic.txt'; 26 $symlink = __DIR__ . DIRECTORY_SEPARATOR . 'lchown_basic_symlink.txt';
|
/php-src/ext/openssl/tests/ |
H A D | bug69215.phpt | 11 $caCertFile = __DIR__ . DIRECTORY_SEPARATOR . 'bug69215-ca.pem.tmp'; 12 $clientCertFile = __DIR__ . DIRECTORY_SEPARATOR . 'bug69215-client.pem.tmp'; 13 $serverCertFile = __DIR__ . DIRECTORY_SEPARATOR . 'bug69215-server.pem.tmp'; 61 @unlink(__DIR__ . DIRECTORY_SEPARATOR . 'bug69215-ca.pem.tmp'); 62 @unlink(__DIR__ . DIRECTORY_SEPARATOR . 'bug69215-client.pem.tmp'); 63 @unlink(__DIR__ . DIRECTORY_SEPARATOR . 'bug69215-server.pem.tmp');
|
/php-src/ext/standard/tests/streams/ |
H A D | stream_resolve_include_path.phpt | 8 $include_path_file = $include_path . DIRECTORY_SEPARATOR . 'file'; 9 $include_path_nested_file = $include_path_nested . DIRECTORY_SEPARATOR . 'file'; 30 $include_path_file = $include_path . DIRECTORY_SEPARATOR . 'file'; 31 $include_path_nested_file = $include_path_nested . DIRECTORY_SEPARATOR . 'file';
|