Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
Merge pull request #787 from yaqiyang/master
Browse files Browse the repository at this point in the history
Merge #757 to master
  • Loading branch information
yaqiyang committed Mar 18, 2016
2 parents 793b820 + bf68c89 commit 706ad73
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion WindowsAzure/Blob/BlobRestProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -1349,7 +1349,7 @@ public function createBlockBlob($container, $blob, $content, $options = null)
}
if (!empty($body)) {
$block = new Block();
$block->setBlockId(base64_encode(str_pad($counter++, '0', 6)));
$block->setBlockId(base64_encode(str_pad($counter++, 6, '0',STR_PAD_LEFT)));
$block->setType('Uncommitted');
array_push($blockIds, $block);
$this->createBlobBlock($container, $blob, $block->getBlockId(), $body);
Expand Down

0 comments on commit 706ad73

Please sign in to comment.