summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/phar/tests/zip/metadata_write_commit.phpt5
1 files changed, 2 insertions, 3 deletions
diff --git a/ext/phar/tests/zip/metadata_write_commit.phpt b/ext/phar/tests/zip/metadata_write_commit.phpt
index 9df032a5e1..33c172ea30 100644
--- a/ext/phar/tests/zip/metadata_write_commit.phpt
+++ b/ext/phar/tests/zip/metadata_write_commit.phpt
@@ -24,6 +24,7 @@ foreach($files as $name => $cont) {
var_dump(file_get_contents($p2name.'/'.$name));
}
+copy($f2name, $fname);
$phar = new Phar($fname);
$phar->startBuffering();
$phar['a']->setMetadata(42);
@@ -38,9 +39,7 @@ $phar->stopBuffering();
unset($phar);
-copy($f2name, $fname);
-
-$phar = new Phar($fname2);
+$phar = new Phar($fname);
foreach($files as $name => $cont) {
var_dump(file_get_contents($pname.'/'.$name));