Skip to content

Commit 3e594db

Browse files
committed
Fix warning in phar_test.inc
1 parent 577f948 commit 3e594db

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/phar/tests/files/phar_test.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ foreach($files as $name => $cont)
3535
if (empty($ulen)) $ulen = strlen($cont);
3636
if (empty($clen)) $clen = strlen($comp);
3737
if (empty($crc32))$crc32= crc32((binary)$cont);
38-
if (isset($meta)) $meta = serialize($meta);
38+
$meta = isset($meta) ? serialize($meta) : '';
3939

4040
// write manifest entry
4141
$manifest .= pack('V', strlen($name)) . (binary)$name;
42-
$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . (binary)$meta;
42+
$manifest .= pack('VVVVVV', $ulen, $time, $clen, $crc32, $flags|$perm, strlen($meta)) . $meta;
4343

4444
// globals
4545
$gflags |= $flags;

0 commit comments

Comments
 (0)