Home
last modified time | relevance | path

Searched refs:txt (Results 1 – 25 of 527) sorted by relevance

12345678910>>...22

/PHP-7.4/ext/phar/tests/
H A Dbug45218_SLOWTEST.phpt93 string(22) "*bug45218_SLOWTEST.txt"
95 string(22) "*bug45218_SLOWTEST.txt"
97 string(22) "*bug45218_SLOWTEST.txt"
99 string(22) "*bug45218_SLOWTEST.txt"
101 string(22) "*bug45218_SLOWTEST.txt"
103 string(22) "*bug45218_SLOWTEST.txt"
105 string(22) "*bug45218_SLOWTEST.txt"
107 string(22) "*bug45218_SLOWTEST.txt"
109 string(22) "*bug45218_SLOWTEST.txt"
111 string(22) "*bug45218_SLOWTEST.txt"
[all …]
H A Dphar_buildfromdirectory5.phpt13 file_put_contents(__DIR__."/testdir5/file$i.txt", "some content for file $i");
18 $a = $phar->buildFromDirectory(__DIR__ . '/testdir5', '/\.txt/');
34 unlink(__DIR__ . "/testdir5/file$i.txt");
40 ["file1.txt"]=>
41 string(%d) "%stestdir5%cfile1.txt"
42 ["file2.txt"]=>
43 string(%d) "%stestdir5%cfile2.txt"
44 ["file3.txt"]=>
45 string(%d) "%stestdir5%cfile3.txt"
46 ["file4.txt"]=>
[all …]
H A Dphar_extract.phpt16 $a['file1.txt'] = 'hi';
17 $a['file2.txt'] = 'hi2';
18 $a['subdir/ectory/file.txt'] = 'hi3';
110 @unlink($e . 'file1.txt');
111 @unlink($e . 'file2.txt');
112 @unlink($e . 'subdir/ectory/file.txt');
119 @unlink($e . 'file1.txt');
125 @unlink($e . 'file2.txt');
131 %sextract%cfile1.txt
132 %sextract%cfile2.txt
[all …]
H A Dphar_buildfromdirectory4.phpt14 file_put_contents(__DIR__."/testdir4/file$i.txt", "some content for file $i");
35 unlink(__DIR__ . "/testdir4/file$i.txt");
41 ["file1.txt"]=>
42 string(%d) "%stestdir4%cfile1.txt"
43 ["file2.txt"]=>
44 string(%d) "%stestdir4%cfile2.txt"
45 ["file3.txt"]=>
46 string(%d) "%stestdir4%cfile3.txt"
47 ["file4.txt"]=>
48 string(%d) "%stestdir4%cfile4.txt"
H A Dstat.phpt20 var_dump(stat("dir/file1.txt"));
22 var_dump(lstat("dir/file1.txt"));
24 var_dump(fileperms("dir/file1.txt"));
26 var_dump(fileinode("dir/file1.txt"));
28 var_dump(filesize("dir/file1.txt"));
52 var_dump(is_dir("dir/file1.txt"));
54 var_dump(is_file("dir/file1.txt"));
56 var_dump(is_link("dir/file1.txt"));
62 $a['dir/file1.txt'] = 'hi';
63 $a['dir/file2.txt'] = 'hi2';
[all …]
/PHP-7.4/ext/zip/tests/
H A Doo_setcompression.phpt21 $zip->addFromString('entry1.txt', $txt);
22 $zip->addFromString('entry2.txt', $txt);
23 $zip->addFromString('dir/entry3.txt', $txt);
24 $zip->addFromString('entry4.txt', $txt);
25 $zip->addFromString('entry5.txt', $txt);
26 $zip->addFromString('entry6.txt', $txt);
27 $zip->addFromString('entry7.txt', $txt);
65 entry1.txt: deflated
66 entry2.txt: deflated
68 entry4.txt: deflated
[all …]
H A Doo_setcomment.phpt20 $zip->addFromString('entry1.txt', 'entry #1');
21 $zip->addFromString('entry2.txt', 'entry #2');
23 $zip->addFromString('entry4.txt', 'entry #1');
27 var_dump($zip->setCommentName('entry1.txt', 'entry1.txt'));
28 var_dump($zip->setCommentName('entry2.txt', 'entry2.txt'));
29 var_dump($zip->setCommentName('dir/entry2d.txt', 'dir/entry2d.txt'));
65 string(10) "entry1.txt"
66 string(10) "entry2.txt"
67 string(15) "dir/entry2d.txt"
68 string(10) "entry4.txt"
[all …]
H A Doo_rename.phpt20 $zip->addFromString('entry1.txt', 'entry #1');
21 $zip->addFromString('entry2.txt', 'entry #2');
36 "entry1.txt",
37 "entry2.txt",
38 "dir/entry2.txt"
45 if (!$zip->renameIndex(0, 'ren_entry1.txt')) {
49 if (!$zip->renameName('dir/entry2.txt', 'dir3/ren_entry2.txt')) {
50 echo "failed name dir/entry2.txt\n";
54 "ren_entry1.txt",
55 "entry2.txt",
[all …]
H A Dbug80863.phpt13 $zip->addFromString("file1.txt", "contents");
14 $zip->addFromString("file2.txt", "contents");
21 "file1.txt",
22 "file2.txt",
30 var_dump(is_file("$target/file1.txt"));
31 var_dump(is_file("$target/file2.txt"));
40 @unlink("$target/file1.txt");
41 @unlink("$target/file2.txt");
H A Doo_encryption.phpt18 $zip->addFromString('foo.txt', 'foo');
20 $zip->addFromString('bar.txt', 'bar');
21 var_dump($zip->setEncryptionName('bar.txt', 9999, $pass)); // Fails
22 var_dump($zip->setEncryptionName('bar.txt', ZipArchive::EM_AES_256, $pass));
27 $s = $zip->statName('foo.txt');
29 $s = $zip->statName('bar.txt');
31 var_dump($zip->getFromName('foo.txt')); // Clear, ok
32 var_dump($zip->getFromName('bar.txt')); // Encrypted, fails
34 var_dump($zip->getFromName('bar.txt')); // Ecnrypted, ok
38 var_dump(file_get_contents("zip://$name#foo.txt")); // Clear, ok
[all …]
/PHP-7.4/ext/standard/tests/file/windows_mb_path/
H A Dtest_cp874_0.phpt53 string(%d) "�������跴�ͺ1.txt"
55 string(%d) "%s�������跴�ͺ1.txt"
60 string(%d) "�������跴�ͺ2.txt"
62 string(%d) "%s�������跴�ͺ2.txt"
67 string(%d) "�������跴�ͺ3.txt"
69 string(%d) "%s�������跴�ͺ3.txt"
74 string(%d) "�������跴�ͺ4.txt"
81 string(%d) "�������跴�ͺ5.txt"
88 string(%d) "�������跴�ͺ6.txt"
95 string(%d) "�������跴�ͺ7.txt"
[all …]
H A Dtest_cp874_to_utf8_0.phpt50 string(%d) "เป็นแฟ้มที่ทดสอบ1.txt"
52 string(%d) "%sเป็นแฟ้มที่ทดสอบ1.txt"
57 string(%d) "เป็นแฟ้มที่ทดสอบ2.txt"
59 string(%d) "%sเป็นแฟ้มที่ทดสอบ2.txt"
64 string(%d) "เป็นแฟ้มที่ทดสอบ3.txt"
66 string(%d) "%sเป็นแฟ้มที่ทดสอบ3.txt"
71 string(%d) "เป็นแฟ้มที่ทดสอบ4.txt"
78 string(%d) "เป็นแฟ้มที่ทดสอบ5.txt"
85 string(%d) "เป็นแฟ้มที่ทดสอบ6.txt"
92 string(%d) "เป็นแฟ้มที่ทดสอบ7.txt"
[all …]
/PHP-7.4/ext/curl/tests/
H A Dcurl_file_upload.phpt27 testcurl($ch, __DIR__ . '/curl_testdata1.txt');
29 testcurl($ch, __DIR__ . '/curl_testdata1.txt', '', 'foo.txt');
30 testcurl($ch, __DIR__ . '/curl_testdata1.txt', 'text/plain', 'foo.txt');
40 $file->setPostFilename('foo.txt');
64 string(%d) "curl_testdata1.txt|text/plain|6"
65 string(%d) "foo.txt|application/octet-stream|6"
66 string(%d) "foo.txt|text/plain|6"
68 string(%d) "%s/curl_testdata1.txt"
69 string(%d) "curl_testdata1.txt|text/plain|6"
70 string(%d) "foo.txt"
[all …]
H A Dbug27023.phpt17 $file = curl_file_create(__DIR__ . '/curl_testdata1.txt');
22 $file = curl_file_create(__DIR__ . '/curl_testdata1.txt', "text/plain");
27 $file = curl_file_create(__DIR__ . '/curl_testdata1.txt', null, "foo.txt");
32 $file = curl_file_create(__DIR__ . '/curl_testdata1.txt', "text/plain", "foo.txt");
41 string(%d) "curl_testdata1.txt|application/octet-stream|6"
42 string(%d) "curl_testdata1.txt|text/plain|6"
43 string(%d) "foo.txt|application/octet-stream|6"
44 string(%d) "foo.txt|text/plain|6"
/PHP-7.4/ext/standard/tests/file/
H A Dbasename_bug66395-win32.phpt7 echo basename("c:file.txt") . "\n";
8 echo basename("d:subdir\\file.txt") . "\n";
9 echo basename("y:file.txt", ".txt") . "\n";
10 echo basename("notdriveletter:file.txt") . "\n";
14 file.txt
15 file.txt
17 notdriveletter:file.txt
H A Dbasename_bug66395_variation2-win32.phpt9 echo basename("notdriveletter:file.txt") . "\n";
10 echo basename("a:\\b:c:d:hello.txt\\hcd:c.txt") . "\n";
11 echo basename("a:b:c:d:hello.txt\\d:some.txt") . "\n";
12 echo basename("a:b:c:d:hello\world\a.bmp\c:d:e:f.txt") . "\n";
13 echo basename("a:\\b:\\c:d:hello\\world\\a.bmp\\d:e:f:g.txt") . "\n";
26 notdriveletter:file.txt
27 hcd:c.txt
28 some.txt
29 f.txt
30 g.txt
[all …]
/PHP-7.4/tests/security/
H A Dopen_basedir_rename.phpt11 var_dump(rename("../bad/bad.txt", "rename.txt"));
12 var_dump(rename(".././bad/bad.txt", "rename.txt"));
13 var_dump(rename("../bad/../bad/bad.txt", "rename.txt"));
14 var_dump(rename("./.././bad/bad.txt", "rename.txt"));
15 var_dump(rename($initdir."/test/bad/bad.txt", "rename.txt"));
32 Warning: rename(): open_basedir restriction in effect. File(../bad/bad.txt) is not within the allow…
35 Warning: rename(): open_basedir restriction in effect. File(.././bad/bad.txt) is not within the all…
38 Warning: rename(): open_basedir restriction in effect. File(../bad/../bad/bad.txt) is not within th…
41 Warning: rename(): open_basedir restriction in effect. File(./.././bad/bad.txt) is not within the a…
44 Warning: rename(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the …
H A Dopen_basedir_readlink.phpt19 $target = ($initdir."/test/bad/bad.txt");
20 $symlink = ($initdir."/test/ok/symlink.txt");
25 var_dump(readlink("symlink.txt"));
26 var_dump(readlink("../ok/symlink.txt"));
27 var_dump(readlink("../ok/./symlink.txt"));
28 var_dump(readlink("./symlink.txt"));
29 var_dump(readlink($initdir."/test/ok/symlink.txt"));
31 $target = ($initdir."/test/ok/ok.txt");
32 $symlink = ($initdir."/test/ok/symlink.txt");
52 Warning: readlink(): open_basedir restriction in effect. File(symlink.txt) is not within the allowe…
[all …]
H A Dopen_basedir_symlink.phpt17 $target = ($initdir."/test/ok/ok.txt");
18 var_dump(symlink($target, "../bad/symlink.txt"));
19 var_dump(symlink($target, "../symlink.txt"));
21 var_dump(symlink($target, "./.././symlink.txt"));
23 $symlink = ($initdir."/test/ok/symlink.txt");
24 var_dump(symlink("../bad/bad.txt", $symlink));
26 var_dump(symlink("../bad/./bad.txt", $symlink));
27 var_dump(symlink("../bad/bad.txt", $symlink));
30 $target = ($initdir."/test/ok/ok.txt");
36 $symlink = ($initdir."/test/ok/ok2/ok.txt");
[all …]
H A Dopen_basedir_file_put_contents.phpt11 var_dump(file_put_contents("../bad/bad.txt", "Hello World!"));
12 var_dump(file_put_contents(".././bad/bad.txt", "Hello World!"));
13 var_dump(file_put_contents("../bad/../bad/bad.txt", "Hello World!"));
14 var_dump(file_put_contents("./.././bad/bad.txt", "Hello World!"));
15 var_dump(file_put_contents($initdir."/test/bad/bad.txt", "Hello World!"));
32 Warning: file_put_contents(): open_basedir restriction in effect. File(../bad/bad.txt) is not withi…
34 Warning: file_put_contents(../bad/bad.txt): failed to open stream: %s in %s on line %d
39 Warning: file_put_contents(.././bad/bad.txt): failed to open stream: %s in %s on line %d
44 Warning: file_put_contents(../bad/../bad/bad.txt): failed to open stream: %s in %s on line %d
49 Warning: file_put_contents(./.././bad/bad.txt): failed to open stream: %s in %s on line %d
[all …]
H A Dopen_basedir_copy.phpt10 var_dump(copy("ok.txt", "../bad"));
11 var_dump(copy("ok.txt", "../bad/bad.txt"));
12 var_dump(copy("ok.txt", ".."));
13 var_dump(copy("ok.txt", "../"));
14 var_dump(copy("ok.txt", "/"));
15 var_dump(copy("ok.txt", "../bad/."));
16 var_dump(copy("ok.txt", "../bad/./bad.txt"));
17 var_dump(copy("ok.txt", "./../."));
19 var_dump(copy("ok.txt", "copy.txt"));
20 var_dump(unlink("copy.txt"));
[all …]
H A Dopen_basedir_link.phpt17 $target = ($initdir."/test/ok/ok.txt");
18 var_dump(link($target, "../bad/link.txt"));
19 var_dump(link($target, "../link.txt"));
20 var_dump(link($target, "../bad/./link.txt"));
21 var_dump(link($target, "./.././link.txt"));
23 $link = ($initdir."/test/ok/link.txt");
24 var_dump(link("../bad/bad.txt", $link));
26 var_dump(link("../bad/./bad.txt", $link));
27 var_dump(link("../bad/bad.txt", $link));
30 $target = ($initdir."/test/ok/ok.txt");
[all …]
H A Dopen_basedir_linkinfo.phpt22 $target = ($initdir."/test/bad/bad.txt");
23 $symlink = ($initdir."/test/ok/symlink.txt");
28 var_dump(linkinfo("symlink.txt"));
29 var_dump(linkinfo("../ok/symlink.txt"));
30 var_dump(linkinfo("../ok/./symlink.txt"));
31 var_dump(linkinfo("./symlink.txt"));
32 var_dump(linkinfo($initdir."/test/ok/symlink.txt"));
34 $target = ($initdir."/test/ok/ok.txt");
35 $symlink = ($initdir."/test/ok/symlink.txt");
61 Warning: symlink(): open_basedir restriction in effect. File(%s/test/bad/bad.txt) is not within the…
/PHP-7.4/ext/bz2/tests/
H A D002.phpt8 @unlink("bz_open_002.txt");
10 $fp = fopen("bz_open_002.txt", "w");
13 $fp = fopen("bz_open_002.txt", "r");
16 @unlink("bz_open_002.txt");
17 $fp = fopen("bz_open_002.txt", "x");
20 @unlink("bz_open_002.txt");
21 $fp = fopen("bz_open_002.txt", "x");
24 $fp = fopen("bz_open_002.txt", "rb");
27 $fp = fopen("bz_open_002.txt", "wb");
36 $fp = fopen("bz_open_002.txt", "r");
[all …]
/PHP-7.4/ext/phar/tests/cache_list/files/
H A Dwrite16.phar3 var_dump(isset($p["test.txt"]));
4 unset($p["test.txt"]);
5 var_dump(isset($p["test.txt"]));
8 [���������������������test.txt������H������E������� ���test2.txt������H������E�������<?ph…

Completed in 59 milliseconds

12345678910>>...22