diff options
author | Greg Beaver <cellog@php.net> | 2008-04-16 04:16:20 +0000 |
---|---|---|
committer | Greg Beaver <cellog@php.net> | 2008-04-16 04:16:20 +0000 |
commit | 398bcf4dd0171472be6442729891451a365197d1 (patch) | |
tree | aa0146a3c63741c1a7e99d0a1eb2e9204d1a5859 | |
parent | 8c4477cde55cb5d6e20bdf658598c4d7022c7c1f (diff) | |
download | php-git-398bcf4dd0171472be6442729891451a365197d1.tar.gz |
fix test - metadata works now
-rw-r--r-- | ext/phar/tests/zip/metadata_write_commit.phpt | 5 |
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)); |