Home
last modified time | relevance | path

Searched refs:files (Results 1 – 25 of 769) sorted by relevance

12345678910>>...31

/PHP-7.4/ext/standard/tests/file/
H A Dfseek_dir_basic.phpt15 $files = array();
16 while( FALSE !== ($files[] = readdir($dh)) ) {}
17 sort($files);
18 var_dump($files);
19 $files = array();
25 while( FALSE !== ($files[] = readdir($dh)) ) {}
26 sort($files);
27 var_dump($files);
28 $files = array();
35 sort($files);
[all …]
/PHP-7.4/ext/phar/tests/cache_list/files/
H A Dphar_oo_test.inc9 $files = array();
17 $files['a.php'] = '<?php echo "This is a.php\n"; ?>';
18 $files['b.php'] = '<?php echo "This is b.php\n"; ?>';
19 $files['b/c.php'] = '<?php echo "This is b/c.php\n"; ?>';
20 $files['b/d.php'] = '<?php echo "This is b/d.php\n"; ?>';
21 $files['e.php'] = '<?php echo "This is e.php\n"; ?>';
24 $files['a.csv'] =<<<EOF
31 $files['a.csv'] =<<<EOF
42 $files['a.php'] = '<?php echo new new class;';
/PHP-7.4/ext/phar/tests/files/
H A Dphar_oo_test.inc10 $files = array();
18 $files['a.php'] = '<?php echo "This is a.php\n"; ?>';
19 $files['b.php'] = '<?php echo "This is b.php\n"; ?>';
20 $files['b/c.php'] = '<?php echo "This is b/c.php\n"; ?>';
21 $files['b/d.php'] = '<?php echo "This is b/d.php\n"; ?>';
22 $files['e.php'] = '<?php echo "This is e.php\n"; ?>';
25 $files['a.csv'] =<<<EOF
32 $files['a.csv'] =<<<EOF
43 $files['a.php'] = '<?php echo new new class;';
/PHP-7.4/ext/phar/tests/
H A Dmetadata_read.phpt15 $files = array();
16 $files['a'] = array('cont' => 'a');
17 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
18 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
19 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
20 include 'files/phar_test.inc';
22 foreach($files as $name => $cont) {
27 foreach($files as $name => $cont) {
33 foreach($files as $name => $cont) {
H A Dmetadata_write.phpt16 $files = array();
17 $files['a'] = array('cont' => 'a');
18 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
19 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
20 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
21 include 'files/phar_test.inc';
23 foreach($files as $name => $cont) {
33 foreach($files as $name => $cont) {
39 foreach($files as $name => $cont) {
H A Dmetadata_write_commit.phpt16 $files = array();
17 $files['a'] = array('cont' => 'a');
18 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
19 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
20 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
21 include 'files/phar_test.inc';
23 foreach($files as $name => $cont) {
34 foreach($files as $name => $cont) {
43 foreach($files as $name => $cont) {
47 foreach($files as $name => $cont) {
H A Dphar_metadata_write.phpt16 $files = array();
17 $files['a'] = array('cont' => 'a');
18 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
19 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
20 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
21 include 'files/phar_test.inc';
23 foreach($files as $name => $cont) {
37 foreach($files as $name => $cont) {
43 foreach($files as $name => $cont) {
H A D030.phpt13 $files = array();
14 $files['a.php'] = '<?php echo "This is a\n"; include \''.$pname.'/b.php\'; ?>';
15 $files['b.php'] = '<?php echo "This is b\n"; include \''.$pname.'/b/c.php\'; ?>';
16 $files['b/c.php'] = '<?php echo "This is b/c\n"; include \''.$pname.'/b/d.php\'; ?>';
17 $files['b/d.php'] = '<?php echo "This is b/d\n"; include \''.$pname.'/e.php\'; ?>';
18 $files['e.php'] = '<?php echo "This is e\n"; ?>';
19 $files['.phar/test'] = '<?php bad boy ?>';
21 include 'files/phar_test.inc';
47 Cannot directly get any files or directories in magic ".phar" directory
H A D019.phpt16 $files = array();
17 $files['a'] = 'a';
18 $files['b/a'] = 'b';
19 $files['b/c/d'] = 'c';
20 $files['bad/c'] = 'd';
22 include 'files/phar_test.inc';
H A D026.phpt13 $files = array();
14 $files['a.php'] = '<?php echo "This is a\n"; require \''.$pname.'/b.php\'; ?>';
15 $files['b.php'] = '<?php echo "This is b\n"; require \''.$pname.'/b/c.php\'; ?>';
16 $files['b/c.php'] = '<?php echo "This is b/c\n"; require \''.$pname.'/b/d.php\'; ?>';
17 $files['b/d.php'] = '<?php echo "This is b/d\n"; require \''.$pname.'/e.php\'; ?>';
18 $files['e.php'] = '<?php echo "This is e\n"; ?>';
20 include 'files/phar_test.inc';
H A Dphar_metadata_read.phpt16 $files = array();
18 $files['a'] = array('cont' => 'a');
19 $files['b'] = array('cont' => 'b');
20 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
21 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
22 include 'files/phar_test.inc';
24 foreach($files as $name => $cont) {
35 foreach($files as $name => $cont) {
45 foreach($files as $name => $cont) {
H A D016.phpt15 $files = array();
17 $files['a'] = array('cont'=>'a','comp'=> pack('H*', 'cbc80400'),'flags'=>0x00001000, 'ulen' => 1, '…
18 $files['b'] = $files['a'];
19 $files['c'] = array('cont'=>'*');
20 $files['d'] = $files['a'];
21 include 'files/phar_test.inc';
H A D028.phpt14 $files = array();
15 $files['a.php'] = '<?php echo "This is a\n"; include "'.$pname.'/b.php"; ?>';
16 $files['b.php'] = '<?php echo "This is b\n"; include "'.$pname.'/b/c.php"; ?>';
17 $files['b/c.php'] = '<?php echo "This is b/c\n"; include "'.$pname.'/b/d.php"; ?>';
18 $files['b/d.php'] = '<?php echo "This is b/d\n"; include "'.$pname.'/e.php"; ?>';
19 $files['e.php'] = '<?php echo "This is e\n"; ?>';
21 include 'files/phar_test.inc';
H A D021.phpt15 $files = array();
16 $files['a'] = 'a';
17 $files['b/a'] = 'b';
18 $files['b/c/d'] = 'c';
19 $files['bad/c'] = 'd';
21 include 'files/phar_test.inc';
H A Dphar_oo_getmodified.phpt15 $files = array();
16 $files['a'] = 'a';
17 $files['b'] = 'b';
18 $files['c'] = 'c';
20 include 'files/phar_test.inc';
H A Dphar_setalias.phpt14 $files = array();
15 $files['a'] = 'a';
16 $files['b'] = 'b';
17 $files['c'] = 'c';
19 include 'files/phar_test.inc';
H A Dphar_gzip.phpt24 $files = array();
25 $files['tar_004.php'] = '<?php var_dump(__FILE__);';
26 $files['internal/file/here'] = "hi there!\n";
27 $files['internal/dir/'] = '';
28 $files['dir/'] = '';
31 include 'files/phar_test.inc';
H A Dphar_oo_002.phpt13 require_once 'files/phar_oo_test.inc';
51 unlink(__DIR__ . '/files/phar_oo_002.phar.php');
55 string(41) "phar://*/files/phar_oo_002.phar.php%ca.php"
68 string(37) "phar://*/files/phar_oo_002.phar.php%cb"
81 string(41) "phar://*/files/phar_oo_002.phar.php%cb.php"
94 string(41) "phar://*/files/phar_oo_002.phar.php%ce.php"
108 string(41) "phar://*/files/phar_oo_002.phar.php%ca.php"
114 string(43) "phar://*/files/phar_oo_002.phar.php/b%cc.php"
120 string(43) "phar://*/files/phar_oo_002.phar.php/b%cd.php"
126 string(41) "phar://*/files/phar_oo_002.phar.php%cb.php"
[all …]
H A Dopen_for_write_existing.phpt14 $files = array();
15 $files['a.php'] = '<?php echo "This is a\n"; ?>';
16 $files['b.php'] = '<?php echo "This is b\n"; ?>';
17 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>';
18 include 'files/phar_test.inc';
/PHP-7.4/ext/phar/tests/zip/
H A Dmetadata_write_commit.phpt13 $f2name = __DIR__ . '/files/metadata.phar.zip';
19 $files = array();
20 $files['a'] = array('cont' => 'a');
21 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
22 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
23 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
25 foreach($files as $name => $cont) {
38 foreach($files as $name => $cont) {
47 foreach($files as $name => $cont) {
51 foreach($files as $name => $cont) {
/PHP-7.4/ext/phar/tests/tar/
H A Dlinks6.phpt2 Phar: test nested linked files
11 echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/link2');
12 echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/link1');
13 echo file_get_contents('phar://' . __DIR__ . '/files/links.phar.tar/testit.txt');
15 $a = fopen('phar://' . __DIR__ . '/files/links.phar.tar/link2', 'r');
/PHP-7.4/ext/standard/tests/dir/
H A Dscandir_variation10.phpt6 * Description: List files & directories inside the specified path
24 // create directory and files
34 $files = scandir($dir, SCANDIR_SORT_NONE);
35 var_dump(count($files));
36 var_dump(in_array('.', $files));
37 var_dump(in_array('..', $files));
38 var_dump(in_array('file1.tmp', $files));
39 var_dump(in_array('file2.tmp', $files));
H A Dscandir_variation10-win32-mb.phpt12 * Description: List files & directories inside the specified path
30 // create directory and files
40 $files = scandir($dir, SCANDIR_SORT_NONE);
41 var_dump(count($files));
42 var_dump(in_array('.', $files));
43 var_dump(in_array('..', $files));
44 var_dump(in_array('私はガラスを食べられますfile1.tmp', $files));
45 var_dump(in_array('私はガラスを食べられますfile2.tmp', $files));
/PHP-7.4/ext/phar/tests/cache_list/
H A Dcopyonwrite4a.phpt11 var_dump(file_exists('phar://' . __DIR__ . '/files/write4.phar/testit.txt'));
12 Phar::mount('phar://' . __DIR__ . '/files/write4.phar/testit.txt', 'phar://' . __DIR__ . '/files/wr…
13 …(file_exists('phar://' . __DIR__ . '/files/write4.phar/testit.txt'), file_get_contents('phar://' .…
/PHP-7.4/ext/standard/tests/general_functions/
H A Dget_included_files.phpt8 * Description: Returns an array with the names of included or required files
14 echo "\n-- List included files at start --\n";
18 echo "\n-- List included files atfter including inc1 -\n";
22 echo "\n-- List included files atfter including inc2 which will include inc3 which includes inc1 --…
33 -- List included files at start --
39 -- List included files atfter including inc1 -
47 -- List included files atfter including inc2 which will include inc3 which includes inc1 --

Completed in 28 milliseconds

12345678910>>...31