Home
last modified time | relevance | path

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

12345678910>>...31

/PHP-5.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-5.4/ext/phar/tests/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-5.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-5.4/ext/phar/tests/
H A Dmetadata_read.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) {
28 foreach($files as $name => $cont) {
34 foreach($files as $name => $cont) {
H A Dmetadata_readU.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) {
28 foreach($files as $name => $cont) {
34 foreach($files as $name => $cont) {
H A Dmetadata_write_commit.phpt17 $files = array();
18 $files['a'] = array('cont' => 'a');
19 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
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) {
44 foreach($files as $name => $cont) {
48 foreach($files as $name => $cont) {
H A Dmetadata_write_commitU.phpt17 $files = array();
18 $files['a'] = array('cont' => 'a');
19 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
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) {
44 foreach($files as $name => $cont) {
48 foreach($files as $name => $cont) {
H A Dmetadata_write.phpt17 $files = array();
18 $files['a'] = array('cont' => 'a');
19 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
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) {
34 foreach($files as $name => $cont) {
40 foreach($files as $name => $cont) {
H A Dmetadata_writeU.phpt17 $files = array();
18 $files['a'] = array('cont' => 'a');
19 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
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) {
34 foreach($files as $name => $cont) {
40 foreach($files as $name => $cont) {
H A Dphar_metadata_write.phpt17 $files = array();
18 $files['a'] = array('cont' => 'a');
19 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
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) {
38 foreach($files as $name => $cont) {
44 foreach($files as $name => $cont) {
H A Dphar_metadata_writeU.phpt17 $files = array();
18 $files['a'] = array('cont' => 'a');
19 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
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) {
38 foreach($files as $name => $cont) {
44 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 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 Dphar_metadata_read.phpt17 $files = array();
19 $files['a'] = array('cont' => 'a');
20 $files['b'] = array('cont' => 'b');
21 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
22 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
23 include 'files/phar_test.inc';
25 foreach($files as $name => $cont) {
36 foreach($files as $name => $cont) {
46 foreach($files as $name => $cont) {
H A Dphar_metadata_readU.phpt17 $files = array();
19 $files['a'] = array('cont' => 'a');
20 $files['b'] = array('cont' => 'b');
21 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
22 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
23 include 'files/phar_test.inc';
25 foreach($files as $name => $cont) {
36 foreach($files as $name => $cont) {
46 foreach($files as $name => $cont) {
H A D016.phpt15 $files = array();
17 $files['a'] = array('cont'=>b'a','comp'=> (binary)pack('H*', 'cbc80400'),'flags'=>0x00001000, 'ulen…
18 $files['b'] = $files['a'];
19 $files['c'] = array('cont'=>b'*');
20 $files['d'] = $files['a'];
21 include 'files/phar_test.inc';
/PHP-5.4/ext/phar/tests/zip/
H A Dmetadata_write_commit.phpt14 $f2name = dirname(__FILE__) . '/files/metadata.phar.zip';
20 $files = array();
21 $files['a'] = array('cont' => 'a');
22 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
23 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
24 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
26 foreach($files as $name => $cont) {
39 foreach($files as $name => $cont) {
48 foreach($files as $name => $cont) {
52 foreach($files as $name => $cont) {
H A Dmetadata_write_commitU.phpt14 $f2name = dirname(__FILE__) . '/files/metadata.phar.zip';
20 $files = array();
21 $files['a'] = array('cont' => 'a');
22 $files['b'] = array('cont' => 'b', 'meta' => 'hi there');
23 $files['c'] = array('cont' => 'c', 'meta' => array('hi', 'there'));
24 $files['d'] = array('cont' => 'd', 'meta' => array('hi'=>'there','foo'=>'bar'));
26 foreach($files as $name => $cont) {
39 foreach($files as $name => $cont) {
48 foreach($files as $name => $cont) {
52 foreach($files as $name => $cont) {
/PHP-5.4/ext/fileinfo/
H A Dfileinfo.php11 $files = glob("*"); variable
12 foreach ($files as $file) {
25 $files = glob("*"); variable
26 foreach ($files as $file) {
/PHP-5.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));
/PHP-5.4/ext/phar/tests/tar/
H A Dlinks6.phpt2 Phar: test nested linked files
11 echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link2');
12 echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link1');
13 echo file_get_contents('phar://' . dirname(__FILE__) . '/files/links.phar.tar/testit.txt');
15 $a = fopen('phar://' . dirname(__FILE__) . '/files/links.phar.tar/link2', 'r');
/PHP-5.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 --
/PHP-5.4/ext/phar/tests/cache_list/
H A Dcopyonwrite4a.phpt11 var_dump(file_exists('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt'));
12 …:mount('phar://' . dirname(__FILE__) . '/files/write4.phar/testit.txt', 'phar://' . dirname(__FILE…
13 …har://' . dirname(__FILE__) . '/files/write4.phar/testit.txt'), file_get_contents('phar://' . dirn…

Completed in 35 milliseconds

12345678910>>...31