Back to index

php5  5.3.10
write4.phar.inc
Go to the documentation of this file.
00001 <?php
00002 
00003 $fname = dirname(__FILE__) . '/write4.phar';
00004 @unlink($fname);
00005 
00006 $phar = new Phar($fname);
00007 $phar->setStub('<?php
00008 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"));
00009 clearstatcache();
00010 Phar::mount("test.txt", "phar://" . __FILE__ . "/tobemounted");
00011 var_dump(file_exists("phar://" . __FILE__ . "/test.txt"), file_get_contents("phar://" . __FILE__ . "/test.txt"));
00012 echo "ok\n";
00013 __HALT_COMPILER();
00014 ?>');
00015 $phar['tobemounted'] = "hi";
00016 ?>