summaryrefslogtreecommitdiff
path: root/ext/phar/tests/zip/phar_magic.phpt
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2008-03-12 03:55:12 +0000
committerGreg Beaver <cellog@php.net>2008-03-12 03:55:12 +0000
commit0262e844c4c18a9d1b6574df444b3f6adb5f835a (patch)
tree4d9583b592f9bb5f234cacab634618f7f16838d3 /ext/phar/tests/zip/phar_magic.phpt
parent70e30449bb2d55c9698eb5d0c787d20e3b5c1a23 (diff)
downloadphp-git-0262e844c4c18a9d1b6574df444b3f6adb5f835a.tar.gz
implement full support and usage of phar stream in include_path, for both 5.2 and 5.3.
5.3 code expects the proposed patch for stream wrapper in include_path to be committed 5.2 code only supports phar stream wrapper in include_path. this is a 2-step process. After this, more magic, particularly in funcinterceptors.c will be converted to use phar_resolve_path, which is far safer than the current implementation. this needs windows and 5.2 testing unix/windows
Diffstat (limited to 'ext/phar/tests/zip/phar_magic.phpt')
-rw-r--r--ext/phar/tests/zip/phar_magic.phpt1
1 files changed, 1 insertions, 0 deletions
diff --git a/ext/phar/tests/zip/phar_magic.phpt b/ext/phar/tests/zip/phar_magic.phpt
index 7afcc3a56c..1ac101ec75 100644
--- a/ext/phar/tests/zip/phar_magic.phpt
+++ b/ext/phar/tests/zip/phar_magic.phpt
@@ -14,6 +14,7 @@ $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);include dirname(__FILE__) . "/../d";';
$p['d'] = "in d\n";
$p->setStub('<?php
+set_include_path("phar://" . __FILE__);
include "phar://" . __FILE__ . "/a";
__HALT_COMPILER();');
include $fname;