summaryrefslogtreecommitdiff
path: root/ext/phar/tests/files/phar_test.inc
diff options
context:
space:
mode:
Diffstat (limited to 'ext/phar/tests/files/phar_test.inc')
-rw-r--r--ext/phar/tests/files/phar_test.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/phar/tests/files/phar_test.inc b/ext/phar/tests/files/phar_test.inc
index f5279a93d2..277271ef4c 100644
--- a/ext/phar/tests/files/phar_test.inc
+++ b/ext/phar/tests/files/phar_test.inc
@@ -35,7 +35,7 @@ foreach($files as $name => $cont)
if (empty($ulen)) $ulen = strlen($cont);
if (empty($clen)) $clen = strlen($comp);
if (empty($crc32))$crc32= crc32((binary)$cont);
- if (isset($meta)) $meta = serialize($meta);
+ $meta = isset($meta) ? serialize($meta) : "";
// write manifest entry
$manifest .= pack('V', strlen($name)) . (binary)$name;