summaryrefslogtreecommitdiff
path: root/ext/phar/tests/phar_magic.phpt
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2007-12-21 04:49:25 +0000
committerGreg Beaver <cellog@php.net>2007-12-21 04:49:25 +0000
commit185a4a83090aac1d81697247ee2db424207c8e71 (patch)
tree2a25bc989e777065cc12a8329eddc5e4b6cb34e3 /ext/phar/tests/phar_magic.phpt
parent62c602f17d9d362200cdf81b2cdb05a01380f554 (diff)
downloadphp-git-185a4a83090aac1d81697247ee2db424207c8e71.tar.gz
on second thought, hooking into getcwd() is a bad idea, who uses this for code loading, anyways?
Diffstat (limited to 'ext/phar/tests/phar_magic.phpt')
-rw-r--r--ext/phar/tests/phar_magic.phpt5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/phar/tests/phar_magic.phpt b/ext/phar/tests/phar_magic.phpt
index 75542b6a58..a774a406c1 100644
--- a/ext/phar/tests/phar_magic.phpt
+++ b/ext/phar/tests/phar_magic.phpt
@@ -1,5 +1,5 @@
--TEST--
-Phar: include/getcwd/fopen magic
+Phar: include/fopen magic
--SKIPIF--
<?php if (!extension_loaded("phar")) print "skip"; ?>
--INI--
@@ -10,7 +10,7 @@ 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";include dirname(__FILE__) . "/../d";';
+$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
include "phar://" . __FILE__ . "/a";
@@ -26,6 +26,5 @@ __HALT_COMPILER();
--EXPECTF--
in b
<?php include "b/c.php";
-phar://%s/b
in d
===DONE===