summaryrefslogtreecommitdiff
path: root/ext/zip/tests/oo_stream.phpt
diff options
context:
space:
mode:
Diffstat (limited to 'ext/zip/tests/oo_stream.phpt')
-rw-r--r--ext/zip/tests/oo_stream.phpt4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/zip/tests/oo_stream.phpt b/ext/zip/tests/oo_stream.phpt
index 83fe7e8466..89a2711666 100644
--- a/ext/zip/tests/oo_stream.phpt
+++ b/ext/zip/tests/oo_stream.phpt
@@ -6,7 +6,7 @@ if(!extension_loaded('zip')) die('skip');
?>
--FILE--
<?php
-$dirname = dirname(__FILE__) . '/';
+$dirname = __DIR__ . '/';
$file = $dirname . 'test_with_comment.zip';
include $dirname . 'utils.inc';
$zip = new ZipArchive;
@@ -27,7 +27,7 @@ $zip->close();
var_dump($contents);
-$fp = fopen('zip://' . dirname(__FILE__) . '/test_with_comment.zip#foo', 'rb');
+$fp = fopen('zip://' . __DIR__ . '/test_with_comment.zip#foo', 'rb');
if (!$fp) {
exit("cannot open\n");
}