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

Commit

Permalink
Merge pull request #12 from nowenL/release
Browse files Browse the repository at this point in the history
Release for v0.10.1
  • Loading branch information
vinjiang committed May 12, 2016
2 parents 7afb71c + ce2806a commit eadb037
Show file tree
Hide file tree
Showing 277 changed files with 293 additions and 282 deletions.
5 changes: 5 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
2016.05 - version 0.10.1
Blob
* Fixed the issue that blobs upload with size multiple of 4194304 bytes and larger than 33554432 bytes.
* Fixed the issue that extra / is appended in blob URL.

2016.04 - version 0.10.0
ALL
* Separated Azure Storage APIs in Azure-SDK-for-PHP to establish an independent release cycle.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ You can find samples in the [sample folder](samples)

If you are using [Azure SDK for PHP](https://github.com/Azure/azure-sdk-for-php/) to access Azure Storage Service, we highly recommend you to migrate to this SDK for faster issue resolution and quicker feature implementation. We are working on supporting the latest service features (including SAS, CORS, append blob, file service, etc) as well as improvement on existing APIs.

For now, Microsoft Azure Storage SDK for PHP v0.10.0 shares almost the same interface as the storage blobs, tables and queues APIs in Azure SDK for PHP v0.4.1. However, there are some minor breaking changes need to be addressed during your migration. You can find the details in [BreakingChanges.md](BreakingChanges.md).
For now, Microsoft Azure Storage SDK for PHP v0.10.1 shares almost the same interface as the storage blobs, tables and queues APIs in Azure SDK for PHP v0.4.3. However, there are some minor breaking changes need to be addressed during your migration. You can find the details in [BreakingChanges.md](BreakingChanges.md).

Please note that this library is still in preview and may contain more breaking changes in upcoming releases.

Expand Down
18 changes: 12 additions & 6 deletions src/Blob/BlobRestProxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobRestProxy extends ServiceRestProxy implements IBlob
Expand Down Expand Up @@ -195,6 +195,10 @@ private function _getBlobUrl($container, $blob)
$encodedBlob = $container . '/' . $encodedBlob;
}

if (substr($encodedBlob, 0, 1) != '/' && substr($this->getUri(), -1, 1) != '/')
{
$encodedBlob = '/' . $encodedBlob;
}
return $this->getUri() . $encodedBlob;
}

Expand Down Expand Up @@ -1352,11 +1356,13 @@ public function createBlockBlob($container, $blob, $content, $options = null)
$content = substr_replace($content, '', 0, $blockSize);
}
}
$block = new Block();
$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);
if (!empty($body)) {
$block = new Block();
$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);
}
}
$response = $this->commitBlobBlocks($container, $blob, $blockIds, $options);
}
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Internal/IBlob.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
* @see http://msdn.microsoft.com/en-us/library/windowsazure/dd135733.aspx
*/
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/AccessCondition.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class AccessCondition
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/AccessPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class AccessPolicy
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/AcquireLeaseOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class AcquireLeaseOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/AcquireLeaseResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class AcquireLeaseResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/Blob.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class Blob
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobBlockType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobBlockType
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobPrefix.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobPrefix
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobProperties
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobServiceOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlobType.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class BlobType
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/Block.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class Block
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BlockList.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class BlockList
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/BreakLeaseResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class BreakLeaseResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CommitBlobBlocksOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CommitBlobBlocksOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/Container.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class Container
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/ContainerACL.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class ContainerAcl
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/ContainerProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class ContainerProperties
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CopyBlobOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CopyBlobOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CopyBlobResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CopyBlobResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobBlockOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobBlockOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobPagesOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobPagesOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobPagesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobPagesResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobSnapshotOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobSnapshotOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateBlobSnapshotResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateBlobSnapshotResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/CreateContainerOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class CreateContainerOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/DeleteBlobOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class DeleteBlobOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/DeleteContainerOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class DeleteContainerOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobMetadataOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobMetadataOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobMetadataResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobMetadataResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobPropertiesOptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobPropertiesOptions extends BlobServiceOptions
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobPropertiesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobPropertiesResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetBlobResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class GetBlobResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetContainerACLResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class GetContainerAclResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/GetContainerPropertiesResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class GetContainerPropertiesResult
Expand Down
2 changes: 1 addition & 1 deletion src/Blob/Models/LeaseMode.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
* @author Azure Storage PHP SDK <[email protected]>
* @copyright 2016 Microsoft Corporation
* @license https://github.com/azure/azure-storage-php/LICENSE
* @version Release: 0.10.0
* @version Release: 0.10.1
* @link https://github.com/azure/azure-storage-php
*/
class LeaseMode
Expand Down
Loading

0 comments on commit eadb037

Please sign in to comment.