/php-src/ext/phar/tests/ |
H A D | rename_dir_and_mount.phpt | 11 $pname = 'phar://' . $fname; 22 Phar::mount("$pname/a/c", __DIR__); 24 var_dump(file_exists($pname . '/a')); 25 var_dump(file_exists($pname . '/a/x')); 26 var_dump(file_exists($pname . '/a/b')); 28 var_dump(file_exists($pname . '/a/c')); 30 rename($pname . '/a', $pname . '/b'); 32 var_dump(file_exists($pname . '/a')); 33 var_dump(file_exists($pname . '/a/x')); 34 var_dump(file_exists($pname . '/a/b')); [all …]
|
H A D | phar_oo_compressed_002.phpt | 12 $pname = 'phar://' . $fname; 24 var_dump(file_get_contents($pname . '/a')); 26 var_dump(file_get_contents($pname . '/b')); 28 var_dump(file_get_contents($pname . '/c')); 33 file_put_contents($pname . '/b', 'new b'); 35 file_put_contents($pname . '/d', 'new d'); 39 var_dump(file_get_contents($pname . '/a')); 41 var_dump(file_get_contents($pname . '/b')); 43 var_dump(file_get_contents($pname . '/c')); 45 var_dump(file_get_contents($pname . '/d')); [all …]
|
H A D | phar_oo_compressed_002b.phpt | 12 $pname = 'phar://' . $fname; 24 var_dump(file_get_contents($pname . '/a')); 26 var_dump(file_get_contents($pname . '/b')); 28 var_dump(file_get_contents($pname . '/c')); 33 file_put_contents($pname . '/b', 'new b'); 35 file_put_contents($pname . '/d', 'new d'); 39 var_dump(file_get_contents($pname . '/a')); 41 var_dump(file_get_contents($pname . '/b')); 43 var_dump(file_get_contents($pname . '/c')); 45 var_dump(file_get_contents($pname . '/d')); [all …]
|
H A D | phar_ctx_001.phpt | 12 $pname = 'phar://' . $fname; 24 var_dump(file_get_contents($pname . '/a')); 26 var_dump(file_get_contents($pname . '/b')); 28 var_dump(file_get_contents($pname . '/c')); 35 file_put_contents($pname . '/b', 'new b', 0, $context); 39 var_dump(file_get_contents($pname . '/a')); 42 var_dump(file_get_contents($pname . '/b')); 45 var_dump(file_get_contents($pname . '/c')); 48 var_dump(file_get_contents($pname . '/d')); 52 $fp = fopen($pname . '/b', 'r+', 0, $context2); [all …]
|
H A D | phar_oo_uncompressall.phpt | 12 $pname = 'phar://' . $fname; 24 var_dump(file_get_contents($pname . '/a')); 26 var_dump(file_get_contents($pname . '/b')); 28 var_dump(file_get_contents($pname . '/c')); 33 var_dump(file_get_contents($pname . '/a')); 36 var_dump(file_get_contents($pname . '/b')); 39 var_dump(file_get_contents($pname . '/c')); 44 var_dump(file_get_contents($pname . '/a')); 46 var_dump(file_get_contents($pname . '/b')); 48 var_dump(file_get_contents($pname . '/c'));
|
H A D | create_new_and_modify.phpt | 13 $pname = 'phar://' . $fname; 17 file_put_contents($pname . '/a.php', "brand new!\n"); 22 include $pname . '/a.php'; 27 opcache_invalidate($pname . '/a.php', true); 34 file_put_contents($pname .'/a.php', "modified!\n"); 35 file_put_contents($pname .'/b.php', "another!\n"); 44 include $pname . '/a.php'; 45 include $pname . '/b.php';
|
H A D | delete_in_phar_b.phpt | 11 $pname = 'phar://' . $fname; 20 include $pname . '/a.php'; 21 include $pname . '/b.php'; 22 include $pname . '/b/c.php'; 23 unlink($pname . '/b/c.php'); 27 include $pname . '/a.php'; 28 include $pname . '/b.php'; 29 include $pname . '/b/c.php';
|
H A D | rmdir.phpt | 11 $pname = 'phar://' . $fname; 21 echo file_get_contents($pname . '/a/x') . "\n"; 22 var_dump(rmdir($pname . '/a')); 23 echo file_get_contents($pname . '/a/x') . "\n"; 24 unlink($pname . '/a/x'); 25 var_dump(rmdir($pname . '/a'));
|
H A D | rename.phpt | 11 $pname = 'phar://' . $fname; 21 echo file_get_contents($pname . '/a') . "\n"; 22 rename($pname . '/a', $pname . '/b'); 23 echo file_get_contents($pname . '/b') . "\n"; 24 echo file_get_contents($pname . '/a') . "\n";
|
H A D | cached_manifest_1.phpt | 9 $pname = 'phar://' . dirname(__FILE__) . '/files/nophar.phar'; 10 var_dump(file_get_contents($pname . '/b/c.php')); 11 $a = opendir($pname); 15 foreach (new RecursiveIteratorIterator(new Phar($pname)) as $f) { 18 var_dump(is_dir($pname . '/b')); 19 var_dump(is_dir($pname . '/d')); 20 var_dump(is_dir($pname . '/b/c.php'));
|
H A D | phar_oo_compressed_001.phpt | 12 $pname = 'phar://' . $fname; 24 var_dump(file_get_contents($pname . '/a')); 26 var_dump(file_get_contents($pname . '/b')); 28 var_dump(file_get_contents($pname . '/c')); 38 var_dump(file_get_contents($pname . '/a')); 40 var_dump(file_get_contents($pname . '/b')); 42 var_dump(file_get_contents($pname . '/c')); 44 var_dump(file_get_contents($pname . '/d'));
|
H A D | phar_oo_compressed_001b.phpt | 12 $pname = 'phar://' . $fname; 24 var_dump(file_get_contents($pname . '/a')); 26 var_dump(file_get_contents($pname . '/b')); 28 var_dump(file_get_contents($pname . '/c')); 38 var_dump(file_get_contents($pname . '/a')); 40 var_dump(file_get_contents($pname . '/b')); 42 var_dump(file_get_contents($pname . '/c')); 44 var_dump(file_get_contents($pname . '/d'));
|
H A D | delete_in_phar.phpt | 12 $pname = 'phar://' . $fname; 22 include $pname . '/a.php'; 23 include $pname . '/b.php'; 24 include $pname . '/b/c.php'; 25 unlink($pname . '/b/c.php'); 29 include $pname . '/a.php'; 30 include $pname . '/b.php'; 31 include $pname . '/b/c.php';
|
H A D | rename_dir.phpt | 12 $pname = 'phar://' . $fname; 22 echo file_get_contents($pname . '/a/x') . "\n"; 23 rename($pname . '/a', $pname . '/b'); 24 echo file_get_contents($pname . '/b/x') . "\n"; 25 echo file_get_contents($pname . '/a/x') . "\n";
|
H A D | 028.phpt | 10 $pname = 'phar://hio'; 11 $file = '<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>'; 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"; ?>'; 29 include $pname . '/a.php';
|
H A D | 026.phpt | 10 $pname = 'phar://' . $fname; 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\'; ?>'; 22 require $pname . '/a.php';
|
H A D | phar_oo_compressallbz2.phpt | 12 $pname = 'phar://' . $fname; 24 var_dump(file_get_contents($pname . '/a')); 26 var_dump(file_get_contents($pname . '/b')); 28 var_dump(file_get_contents($pname . '/c')); 33 var_dump(file_get_contents($pname . '/a')); 36 var_dump(file_get_contents($pname . '/b')); 39 var_dump(file_get_contents($pname . '/c'));
|
H A D | 030.phpt | 10 $pname = 'phar://' . $fname; 11 $file = '<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>'; 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\'; ?>'; 25 require $pname . '/a.php';
|
H A D | phar_oo_compressallgz.phpt | 12 $pname = 'phar://' . $fname; 24 var_dump(file_get_contents($pname . '/a')); 26 var_dump(file_get_contents($pname . '/b')); 28 var_dump(file_get_contents($pname . '/c')); 33 var_dump(file_get_contents($pname . '/a')); 36 var_dump(file_get_contents($pname . '/b')); 39 var_dump(file_get_contents($pname . '/c'));
|
H A D | addfuncs.phpt | 10 $pname = 'phar://' . $fname; 13 echo file_get_contents($pname . '/a') . "\n"; 14 $phar->addFile($pname . '/a', 'b'); 15 echo file_get_contents($pname . '/b') . "\n"; 17 $phar->addFile($pname . '/a'); 22 $phar->addFile($pname . '/a', 'a'); 32 $phar->addFile($pname . '/a', '.phar/stub.php');
|
H A D | 029.phpt | 13 $pname = 'phar://hio'; 14 $file = '<?php include "' . $pname . '/a.php"; __HALT_COMPILER(); ?>'; 17 $files['a.php'] = '<?php echo "This is a\n"; include "'.$pname.'/b.php"; ?>'; 18 $files['b.php'] = '<?php echo "This is b\n"; include "'.$pname.'/b/c.php"; ?>'; 19 $files['b/c.php'] = '<?php echo "This is b/c\n"; include "'.$pname.'/b/d.php"; ?>'; 20 $files['b/d.php'] = '<?php echo "This is b/d\n"; include "'.$pname.'/e.php"; ?>';
|
/php-src/ext/phar/tests/zip/ |
H A D | create_new_and_modify.phpt | 12 $pname = 'phar://' . $fname; 16 file_put_contents($pname . '/a.php', "brand new!\n"); 21 opcache_invalidate($pname . '/a.php', true); 32 include $pname . '/a.php'; 34 file_put_contents($pname .'/a.php', "modified!\n"); 35 file_put_contents($pname .'/b.php', "another!\n"); 42 include $pname . '/a.php'; 43 include $pname . '/b.php';
|
H A D | phar_oo_compressallgz.phpt | 11 $pname = 'phar://' . $fname; 18 var_dump(file_get_contents($pname . '/a')); 20 var_dump(file_get_contents($pname . '/b')); 22 var_dump(file_get_contents($pname . '/c')); 26 var_dump(file_get_contents($pname . '/a')); 29 var_dump(file_get_contents($pname . '/b')); 32 var_dump(file_get_contents($pname . '/c'));
|
H A D | phar_oo_compressallbz2.phpt | 12 $pname = 'phar://' . $fname; 20 var_dump(file_get_contents($pname . '/a')); 22 var_dump(file_get_contents($pname . '/b')); 24 var_dump(file_get_contents($pname . '/c')); 28 var_dump(file_get_contents($pname . '/a')); 31 var_dump(file_get_contents($pname . '/b')); 34 var_dump(file_get_contents($pname . '/c'));
|
/php-src/ext/phar/tests/tar/ |
H A D | create_new_and_modify.phpt | 12 $pname = 'phar://' . $fname; 16 file_put_contents($pname . '/a.php', "brand new!\n"); 21 opcache_invalidate($pname . '/a.php', true); 32 include $pname . '/a.php'; 34 file_put_contents($pname .'/a.php', "modified!\n"); 35 file_put_contents($pname .'/b.php', "another!\n"); 42 include $pname . '/a.php'; 43 include $pname . '/b.php';
|