Home
last modified time | relevance | path

Searched refs:pname (Results 1 – 25 of 136) sorted by relevance

123456

/php-src/ext/phar/tests/
H A Drename_dir_and_mount.phpt11 $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 Dphar_oo_compressed_002.phpt12 $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 Dphar_oo_compressed_002b.phpt12 $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 Dphar_ctx_001.phpt12 $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 Dphar_oo_uncompressall.phpt12 $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 Dcreate_new_and_modify.phpt13 $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 Ddelete_in_phar_b.phpt11 $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 Drmdir.phpt11 $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 Drename.phpt11 $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 Dcached_manifest_1.phpt9 $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 Dphar_oo_compressed_001.phpt12 $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 Dphar_oo_compressed_001b.phpt12 $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 Ddelete_in_phar.phpt12 $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 Drename_dir.phpt12 $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 D028.phpt10 $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 D026.phpt10 $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 Dphar_oo_compressallbz2.phpt12 $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 D030.phpt10 $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 Dphar_oo_compressallgz.phpt12 $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 Daddfuncs.phpt10 $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 D029.phpt13 $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 Dcreate_new_and_modify.phpt12 $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 Dphar_oo_compressallgz.phpt11 $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 Dphar_oo_compressallbz2.phpt12 $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 Dcreate_new_and_modify.phpt12 $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';

Completed in 35 milliseconds

123456