1<?php 2$fname = dirname(__FILE__) . '/nophar.phar'; 3@unlink($fname); 4$p = new Phar($fname); 5$p['index.php'] = '<?php include "b/c.php";' . "\n"; 6$p['web.php'] = '<?php echo "web\n";'; 7$p['b/c.php'] = '<?php echo "in b\n";$a = fopen("index.php", "r", true);echo stream_get_contents($a);fclose($a);include dirname(__FILE__) . "/../d";'; 8$p['d'] = "in d\n"; 9$p->setStub($p->createDefaultStub('index.php', 'web.php')); 10?>