Home
last modified time | relevance | path

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

12345678910>>...25

/php-src/ext/phar/tests/
H A Dbug45218_SLOWTEST.phpt94 string(22) "*bug45218_SLOWTEST.txt"
96 string(22) "*bug45218_SLOWTEST.txt"
98 string(22) "*bug45218_SLOWTEST.txt"
100 string(22) "*bug45218_SLOWTEST.txt"
102 string(22) "*bug45218_SLOWTEST.txt"
104 string(22) "*bug45218_SLOWTEST.txt"
106 string(22) "*bug45218_SLOWTEST.txt"
108 string(22) "*bug45218_SLOWTEST.txt"
110 string(22) "*bug45218_SLOWTEST.txt"
112 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/');
33 unlink(__DIR__ . "/testdir5/file$i.txt");
39 ["file1.txt"]=>
40 string(%d) "%stestdir5%cfile1.txt"
41 ["file2.txt"]=>
42 string(%d) "%stestdir5%cfile2.txt"
43 ["file3.txt"]=>
44 string(%d) "%stestdir5%cfile3.txt"
45 ["file4.txt"]=>
[all …]
H A Dphar_extract.phpt16 $a['file1.txt'] = 'hi';
17 $a['file2.txt'] = 'hi2';
18 $a['subdir/ectory/file.txt'] = 'hi3';
112 unlink($e . 'file1.txt');
113 unlink($e . 'file2.txt');
114 unlink($e . 'subdir/ectory/file.txt');
120 unlink($e . 'file1.txt');
126 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");
34 unlink(__DIR__ . "/testdir4/file$i.txt");
40 ["file1.txt"]=>
41 string(%d) "%stestdir4%cfile1.txt"
42 ["file2.txt"]=>
43 string(%d) "%stestdir4%cfile2.txt"
44 ["file3.txt"]=>
45 string(%d) "%stestdir4%cfile3.txt"
46 ["file4.txt"]=>
47 string(%d) "%stestdir4%cfile4.txt"
H A Dstat.phpt26 var_dump(stat("dir/file1.txt"));
28 var_dump(lstat("dir/file1.txt"));
30 var_dump(fileperms("dir/file1.txt"));
32 var_dump(fileinode("dir/file1.txt"));
34 var_dump(filesize("dir/file1.txt"));
58 var_dump(is_dir("dir/file1.txt"));
60 var_dump(is_file("dir/file1.txt"));
62 var_dump(is_link("dir/file1.txt"));
68 $a['dir/file1.txt'] = 'hi';
69 $a['dir/file2.txt'] = 'hi2';
[all …]
/php-src/ext/spl/tests/
H A DSplFileinfo_getBasename_basic.phpt8 echo (new \SplFileInfo('c.txt'))->getBasename() . PHP_EOL;
13 echo (new \SplFileInfo('path/to/a.txt'))->getBasename('.txt') . PHP_EOL;
14 echo (new \SplFileInfo('path/to/bbb.txt'))->getBasename('b.txt') . PHP_EOL;
15 echo (new \SplFileInfo('path/to/ccc.txt'))->getBasename('to/ccc.txt') . PHP_EOL;
16 echo (new \SplFileInfo('d.txt'))->getBasename('txt') . PHP_EOL;
17 echo (new \SplFileInfo('e.txt'))->getBasename('e.txt') . PHP_EOL;
18 echo (new \SplFileInfo('f'))->getBasename('.txt');
21 a.txt
23 c.txt
29 ccc.txt
[all …]
H A DSplFileinfo_debugInfo_basic.phpt23 string(14) "/path/to/a.txt"
25 string(5) "a.txt"
35 string(5) "c.txt"
37 string(5) "c.txt"
55 string(5) "a.txt"
61 string(7) "bbb.txt"
67 string(7) "ccc.txt"
71 string(5) "d.txt"
73 string(5) "d.txt"
77 string(5) "e.txt"
[all …]
/php-src/ext/standard/tests/file/windows_mb_path/
H A Dtest_cp874_0.phpt52 string(%d) "�������跴�ͺ1.txt"
54 string(%d) "%s�������跴�ͺ1.txt"
59 string(%d) "�������跴�ͺ2.txt"
61 string(%d) "%s�������跴�ͺ2.txt"
66 string(%d) "�������跴�ͺ3.txt"
68 string(%d) "%s�������跴�ͺ3.txt"
73 string(%d) "�������跴�ͺ4.txt"
80 string(%d) "�������跴�ͺ5.txt"
87 string(%d) "�������跴�ͺ6.txt"
94 string(%d) "�������跴�ͺ7.txt"
[all …]
H A Dtest_cp874_to_utf8_0.phpt49 string(%d) "เป็นแฟ้มที่ทดสอบ1.txt"
51 string(%d) "%sเป็นแฟ้มที่ทดสอบ1.txt"
56 string(%d) "เป็นแฟ้มที่ทดสอบ2.txt"
58 string(%d) "%sเป็นแฟ้มที่ทดสอบ2.txt"
63 string(%d) "เป็นแฟ้มที่ทดสอบ3.txt"
65 string(%d) "%sเป็นแฟ้มที่ทดสอบ3.txt"
70 string(%d) "เป็นแฟ้มที่ทดสอบ4.txt"
77 string(%d) "เป็นแฟ้มที่ทดสอบ5.txt"
84 string(%d) "เป็นแฟ้มที่ทดสอบ6.txt"
91 string(%d) "เป็นแฟ้มที่ทดสอบ7.txt"
[all …]
/php-src/ext/zip/tests/
H A Doo_setcomment.phpt18 $zip->addFromString('entry1.txt', 'entry #1');
19 $zip->addFromString('entry2.txt', 'entry #2');
21 $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'));
63 string(10) "entry1.txt"
64 string(10) "entry2.txt"
65 string(15) "dir/entry2d.txt"
66 string(10) "entry4.txt"
[all …]
H A Doo_rename.phpt18 $zip->addFromString('entry1.txt', 'entry #1');
19 $zip->addFromString('entry2.txt', 'entry #2');
34 "entry1.txt",
35 "entry2.txt",
36 "dir/entry2.txt"
43 if (!$zip->renameIndex(0, 'ren_entry1.txt')) {
47 if (!$zip->renameName('dir/entry2.txt', 'dir3/ren_entry2.txt')) {
48 echo "failed name dir/entry2.txt\n";
52 "ren_entry1.txt",
53 "entry2.txt",
[all …]
H A Dbug80863.phpt11 $zip->addFromString("file1.txt", "contents");
12 $zip->addFromString("file2.txt", "contents");
19 "file1.txt",
20 "file2.txt",
28 var_dump(is_file("$target/file1.txt"));
29 var_dump(is_file("$target/file2.txt"));
38 @unlink("$target/file1.txt");
39 @unlink("$target/file2.txt");
H A Doo_encryption.phpt19 $zip->addFromString('foo.txt', 'foo');
21 $zip->addFromString('bar.txt', 'bar');
22 var_dump($zip->setEncryptionName('bar.txt', 9999, $pass)); // Fails
23 var_dump($zip->setEncryptionName('bar.txt', ZipArchive::EM_AES_256, $pass));
28 $s = $zip->statName('foo.txt');
30 $s = $zip->statName('bar.txt');
32 var_dump($zip->getFromName('foo.txt')); // Clear, ok
33 var_dump($zip->getFromName('bar.txt')); // Encrypted, fails
35 var_dump($zip->getFromName('bar.txt')); // Ecnrypted, ok
39 var_dump(file_get_contents("zip://$name#foo.txt")); // Clear, ok
[all …]
H A Doo_addpattern.phpt18 touch($dirname . 'foo.txt');
19 touch($dirname . 'bar.txt');
27 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
31 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
35 if (!$zip->addPattern('/\.txt$/', $dir, $options)) {
44 "entry1.txt",
45 "baz/foo.txt",
46 "baz/bar.txt"
61 unlink($dirname . 'foo.txt');
62 unlink($dirname . 'bar.txt');
/php-src/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');
69 string(%d) "curl_testdata1.txt|text/plain|6"
70 string(%d) "foo.txt|application/octet-stream|6"
71 string(%d) "foo.txt|text/plain|6"
73 string(%d) "%s/curl_testdata1.txt"
74 string(%d) "curl_testdata1.txt|text/plain|6"
75 string(%d) "foo.txt"
[all …]
H A Dcurl_string_file_upload.phpt28 testcurl($ch, 'foo.txt', $data);
29 testcurl($ch, 'foo.txt', $data, 'text/plain');
31 testcurl($ch, 'foo.txt', '');
35 $file = new CURLStringFile($data, 'foo.txt');
44 $old = new CURLStringFile($data, 'foo.txt', 'text/plain');
51 $file = new CURLStringFile($data, 'foo.txt', 'text/plain');
57 $file = new CURLStringFile($data, 'foo.txt', 'text/plain');
64 $file = new CURLStringFile($data, 'foo.txt', 'text/plain');
75 string(%d) "foo.txt|text/plain|62942c05ed0d1b501c4afe6dc1c4db1b"
78 string(%d) "foo.txt|text/plain|62942c05ed0d1b501c4afe6dc1c4db1b"
[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-src/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";
13 file.txt
14 file.txt
16 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";
25 notdriveletter:file.txt
26 hcd:c.txt
27 some.txt
28 f.txt
29 g.txt
[all …]
/php-src/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");
26 var_dump(readlink("symlink.txt"));
27 var_dump(readlink("../ok/symlink.txt"));
28 var_dump(readlink("../ok/./symlink.txt"));
29 var_dump(readlink("./symlink.txt"));
30 var_dump(readlink($initdir."/test/ok/symlink.txt"));
32 $target = ($initdir."/test/ok/ok.txt");
33 $symlink = ($initdir."/test/ok/symlink.txt");
53 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 …]
/php-src/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");
30 $fp = fopen("bz_open_002.txt", "br");
[all …]
/php-src/tests/basic/
H A Drfc1867_array_upload.phpt10 Content-Disposition: form-data; name="file[]"; filename="file1.txt"
15 Content-Disposition: form-data; name="file[2]"; filename="file2.txt"
20 Content-Disposition: form-data; name="file[]"; filename="file3.txt"
37 string(9) "file1.txt"
39 string(9) "file2.txt"
41 string(9) "file3.txt"
46 string(9) "file1.txt"
48 string(9) "file2.txt"
50 string(9) "file3.txt"

Completed in 61 milliseconds

12345678910>>...25