/PHP-7.2/ext/standard/tests/file/ |
H A D | fseek_dir_basic.phpt | 15 $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.2/ext/phar/tests/cache_list/files/ |
H A D | phar_oo_test.inc | 9 $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.2/ext/phar/tests/files/ |
H A D | phar_oo_test.inc | 10 $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.2/ext/phar/tests/ |
H A D | metadata_read.phpt | 15 $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 D | metadata_write.phpt | 16 $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 D | metadata_write_commit.phpt | 16 $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 D | phar_metadata_write.phpt | 16 $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 D | 030.phpt | 13 $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 D | 019.phpt | 16 $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 D | 026.phpt | 13 $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 D | phar_metadata_read.phpt | 16 $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 D | 028.phpt | 14 $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 D | 016.phpt | 15 $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 D | phar_oo_getmodified.phpt | 15 $files = array(); 16 $files['a'] = 'a'; 17 $files['b'] = 'b'; 18 $files['c'] = 'c'; 20 include 'files/phar_test.inc';
|
H A D | phar_setalias.phpt | 14 $files = array(); 15 $files['a'] = 'a'; 16 $files['b'] = 'b'; 17 $files['c'] = 'c'; 19 include 'files/phar_test.inc';
|
H A D | 021.phpt | 15 $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 D | 024.phpt | 13 $files = array(); 14 $files['a.php'] = '<?php echo "This is a\n"; ?>'; 15 $files['b.php'] = '<?php echo "This is b\n"; ?>'; 16 $files['b/c.php'] = '<?php echo "This is b/c\n"; ?>'; 18 include 'files/phar_test.inc';
|
/PHP-7.2/ext/phar/tests/zip/ |
H A D | metadata_write_commit.phpt | 13 $f2name = dirname(__FILE__) . '/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) {
|
H A D | corrupt_008.phpt | 9 new PharData(dirname(__FILE__) . '/files/compress_unsup1.zip'); 14 new PharData(dirname(__FILE__) . '/files/compress_unsup2.zip'); 19 new PharData(dirname(__FILE__) . '/files/compress_unsup3.zip'); 24 new PharData(dirname(__FILE__) . '/files/compress_unsup4.zip'); 29 new PharData(dirname(__FILE__) . '/files/compress_unsup5.zip'); 34 new PharData(dirname(__FILE__) . '/files/compress_unsup6.zip'); 39 new PharData(dirname(__FILE__) . '/files/compress_unsup7.zip'); 44 new PharData(dirname(__FILE__) . '/files/compress_unsup9.zip'); 49 new PharData(dirname(__FILE__) . '/files/compress_unsup10.zip'); 54 new PharData(dirname(__FILE__) . '/files/compress_unsup14.zip'); [all …]
|
/PHP-7.2/ext/fileinfo/ |
H A D | fileinfo.php | 11 $files = glob("*"); variable 12 foreach ($files as $file) { 25 $files = glob("*"); variable 26 foreach ($files as $file) {
|
/PHP-7.2/ext/standard/tests/dir/ |
H A D | scandir_variation10.phpt | 6 * 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 D | scandir_variation10-win32-mb.phpt | 12 * 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.2/ext/phar/tests/tar/ |
H A D | links6.phpt | 2 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-7.2/ext/phar/tests/cache_list/ |
H A D | copyonwrite4a.phpt | 11 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…
|
/PHP-7.2/ext/standard/tests/general_functions/ |
H A D | get_included_files.phpt | 8 * 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 --
|