Annotation of embedaddon/php/ext/phar/tests/cache_list/files/write18.phar.inc, revision 1.1.1.1
1.1 misho 1: <?php
2:
3: $fname = dirname(__FILE__) . '/write18.phar';
4: @unlink($fname);
5:
6: $phar = new Phar($fname);
7: $phar->setStub('<?php
8: $p = new Phar(__FILE__);
9: echo decoct(fileperms("phar://" . __FILE__ . "/test.txt")),"\n";
10: $p["test.txt"]->chmod(0444);
11: echo decoct(fileperms("phar://" . __FILE__ . "/test.txt")),"\n";
12: echo "ok\n";
13: __HALT_COMPILER();
14: ?>');
15: $phar['test.txt'] = "<?php __HALT"."_COMPILER();";
16: $phar["test.txt"]->chmod(0666);
17: ?>
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>