Annotation of embedaddon/php/ext/phar/tests/cache_list/files/write5.phar, revision 1.1.1.1
1.1 misho 1: <?php
2: $phar = new Phar(__FILE__);
3: $d = dirname(__FILE__) . "/copyonwrite5";
4: mkdir($d);
5: file_put_contents($d . "/file1", "file1\n");
6: file_put_contents($d . "/file2", "file2\n");
7: $arr = $phar->buildFromDirectory($d);
8: ksort($arr);
9: var_dump($arr);
10: $phar2 = new Phar(__FILE__);
11: $arr = array();
12: foreach ($phar2 as $name => $file) {
13: $arr[$name] = $file->getContent();
14: }
15: ksort($arr);
16: foreach ($arr as $name => $content) {
17: echo $name, " ", $content;
18: }
19: echo "ok\n";
20: __HALT_COMPILER(); ?>
21: 0 &