diff options
author | Greg Beaver <cellog@php.net> | 2007-12-20 23:12:40 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2007-12-20 23:12:40 +0000 |
commit | 0d830a27ea042b1bd9b32a050e6812002b79f487 (patch) | |
tree | 0d3e47ca45a0c0d7f3193f12dcd2772c9fee54dc /ext/phar/tests/phar_magic.phpt | |
parent | 14446246639d3eabfdf98540a53235c667f003ce (diff) | |
download | php-git-0d830a27ea042b1bd9b32a050e6812002b79f487.tar.gz |
implement cleaning of crap paths - major functionality boost
Diffstat (limited to 'ext/phar/tests/phar_magic.phpt')
-rw-r--r-- | ext/phar/tests/phar_magic.phpt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ext/phar/tests/phar_magic.phpt b/ext/phar/tests/phar_magic.phpt index a813560a9d..75542b6a58 100644 --- a/ext/phar/tests/phar_magic.phpt +++ b/ext/phar/tests/phar_magic.phpt @@ -10,7 +10,8 @@ phar.readonly=0 $fname = dirname(__FILE__) . '/' . basename(__FILE__, '.php') . '.phar.php'; $p = new Phar($fname); $p['a'] = '<?php include "b/c.php";' . "\n"; -$p['b/c.php'] = '<?php echo "in b\n";$a = fopen("a", "r", true);echo stream_get_contents($a);fclose($a);echo getcwd() . "\n";'; +$p['b/c.php'] = '<?php echo "in b\n";$a = fopen("a", "r", true);echo stream_get_contents($a);fclose($a);echo getcwd() . "\n";include dirname(__FILE__) . "/../d";'; +$p['d'] = "in d\n"; $p->setStub('<?php include "phar://" . __FILE__ . "/a"; __HALT_COMPILER();'); @@ -26,4 +27,5 @@ __HALT_COMPILER(); in b <?php include "b/c.php"; phar://%s/b +in d ===DONE=== |