/PHP-5.4/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-5.4/ext/phar/tests/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-5.4/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-5.4/ext/phar/tests/ |
H A D | metadata_read.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) { 28 foreach($files as $name => $cont) { 34 foreach($files as $name => $cont) {
|
H A D | metadata_readU.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) { 28 foreach($files as $name => $cont) { 34 foreach($files as $name => $cont) {
|
H A D | metadata_write_commit.phpt | 17 $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 D | metadata_write_commitU.phpt | 17 $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 D | metadata_write.phpt | 17 $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 D | metadata_writeU.phpt | 17 $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 D | phar_metadata_write.phpt | 17 $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 D | phar_metadata_writeU.phpt | 17 $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 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 | 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 | phar_metadata_read.phpt | 17 $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 D | phar_metadata_readU.phpt | 17 $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 D | 016.phpt | 15 $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 D | metadata_write_commit.phpt | 14 $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 D | metadata_write_commitU.phpt | 14 $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 D | fileinfo.php | 11 $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 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));
|
/PHP-5.4/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-5.4/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 --
|
/PHP-5.4/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…
|