Skip to content
This repository was archived by the owner on May 8, 2024. It is now read-only.

Commit b6cbf56

Browse files
katmsftvinjiang
authored andcommitted
Hotfix for small file putBlob issue. (#55)
Hotfix for small file putBlob issue.
1 parent e80bf8b commit b6cbf56

File tree

281 files changed

+557
-282
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

281 files changed

+557
-282
lines changed

ChangeLog.md

Lines changed: 4 additions & 0 deletions

src/Blob/BlobRestProxy.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
9494
* @copyright 2016 Microsoft Corporation
9595
* @license https://github.com/azure/azure-storage-php/LICENSE
96-
* @version Release: 0.12.0
96+
* @version Release: 0.12.1
9797
* @link https://github.com/azure/azure-storage-php
9898
*/
9999
class BlobRestProxy extends ServiceRestProxy implements IBlob
@@ -1618,7 +1618,7 @@ protected function createBlockBlobBySingleUploadAsync(
16181618
Validate::isString($container, 'container');
16191619
Validate::isString($blob, 'blob');
16201620
Validate::notNullOrEmpty($blob, 'blob');
1621-
$body = Psr7\stream_for($content);
1621+
$body = Psr7\stream_for($content)->getContents();
16221622
Validate::isTrue(
16231623
$options == null ||
16241624
$options instanceof CreateBlobOptions,

src/Blob/Internal/IBlob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
3737
* @copyright 2016 Microsoft Corporation
3838
* @license https://github.com/azure/azure-storage-php/LICENSE
39-
* @version Release: 0.12.0
39+
* @version Release: 0.12.1
4040
* @link https://github.com/azure/azure-storage-php
4141
* @see http://msdn.microsoft.com/en-us/library/windowsazure/dd135733.aspx
4242
*/

src/Blob/Models/AccessCondition.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
3838
* @copyright 2016 Microsoft Corporation
3939
* @license https://github.com/azure/azure-storage-php/LICENSE
40-
* @version Release: 0.12.0
40+
* @version Release: 0.12.1
4141
* @link https://github.com/azure/azure-storage-php
4242
*/
4343
class AccessCondition

src/Blob/Models/AccessPolicy.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
3636
* @copyright 2016 Microsoft Corporation
3737
* @license https://github.com/azure/azure-storage-php/LICENSE
38-
* @version Release: 0.12.0
38+
* @version Release: 0.12.1
3939
* @link https://github.com/azure/azure-storage-php
4040
*/
4141
class AccessPolicy

src/Blob/Models/AcquireLeaseOptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
3333
* @copyright 2016 Microsoft Corporation
3434
* @license https://github.com/azure/azure-storage-php/LICENSE
35-
* @version Release: 0.12.0
35+
* @version Release: 0.12.1
3636
* @link https://github.com/azure/azure-storage-php
3737
*/
3838
class AcquireLeaseOptions extends BlobServiceOptions

src/Blob/Models/Blob.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
3333
* @copyright 2016 Microsoft Corporation
3434
* @license https://github.com/azure/azure-storage-php/LICENSE
35-
* @version Release: 0.12.0
35+
* @version Release: 0.12.1
3636
* @link https://github.com/azure/azure-storage-php
3737
*/
3838
class Blob

src/Blob/Models/BlobBlockType.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
3333
* @copyright 2016 Microsoft Corporation
3434
* @license https://github.com/azure/azure-storage-php/LICENSE
35-
* @version Release: 0.12.0
35+
* @version Release: 0.12.1
3636
* @link https://github.com/azure/azure-storage-php
3737
*/
3838
class BlobBlockType

src/Blob/Models/BlobPrefix.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
3333
* @copyright 2016 Microsoft Corporation
3434
* @license https://github.com/azure/azure-storage-php/LICENSE
35-
* @version Release: 0.12.0
35+
* @version Release: 0.12.1
3636
* @link https://github.com/azure/azure-storage-php
3737
*/
3838
class BlobPrefix

src/Blob/Models/BlobProperties.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
* @author Azure Storage PHP SDK <dmsh@microsoft.com>
3737
* @copyright 2016 Microsoft Corporation
3838
* @license https://github.com/azure/azure-storage-php/LICENSE
39-
* @version Release: 0.12.0
39+
* @version Release: 0.12.1
4040
* @link https://github.com/azure/azure-storage-php
4141
*/
4242
class BlobProperties

0 commit comments

Comments
 (0)