mirror of
https://github.com/Ne-Lexa/php-zip.git
synced 2025-07-25 17:51:13 +02:00
Fixed the call array_fill()
with the number of elements 0 for PHP 5.5
This commit is contained in:
@@ -48,11 +48,14 @@ class ApkAlignmentExtraField implements ExtraField
|
|||||||
*/
|
*/
|
||||||
public function serialize()
|
public function serialize()
|
||||||
{
|
{
|
||||||
$args = array_merge(
|
if ($this->padding > 0) {
|
||||||
['vc*', $this->multiple],
|
$args = array_merge(
|
||||||
array_fill(2, $this->padding, 0)
|
['vc*', $this->multiple],
|
||||||
);
|
array_fill(2, $this->padding, 0)
|
||||||
return call_user_func_array('pack', $args);
|
);
|
||||||
|
return call_user_func_array('pack', $args);
|
||||||
|
}
|
||||||
|
return pack('v', $this->multiple);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user