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

Commit e6c77de

Browse files
authored
Merge pull request #42 from katmsft/dev
0.11.0 release
2 parents 9e80199 + a71aa6f commit e6c77de

File tree

282 files changed

+3278
-1761
lines changed

Some content is hidden

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

282 files changed

+3278
-1761
lines changed

ChangeLog.md

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
1-
2016.09 - version 0.10.3
1+
2016.11 - version 0.11.0
22

33
ALL
4-
* Fix error string when an error occurs while parsing a connection string and is passed to _createException in ConnectionStringParser.
4+
* Fix error string when an error occurs while parsing a connection string and is passed to _createException in `MicrosoftAzure\Storage\Common\Internal\ConnectionStringParser`.
5+
* Added support to create Guzzle's customizable retry middleware to handle the request after the response is received. Also added a default retry policy in case a retry policy is not specified.
6+
* Fixed a bug in unit test where getting properties from service failed to match the expected result due to previous settings have not yet taken effect.
7+
* Fixed some coding style issue. This work will be continued in the following serveral releases, and strictly follows PSR-2 coding style.
8+
* Updated the documentation of `setMetadata`, now in the comments of the following methods `$metadata` is an array instead of a string.
9+
```
10+
MicrosoftAzure\Storage\Blob\Models\Blob.setMetadata
11+
MicrosoftAzure\Storage\Blob\Models\CommitBlobBlocksOptions.setMetadata
12+
MicrosoftAzure\Storage\Blob\Models\GetContainerPropertiesResult.setMetadata
13+
MicrosoftAzure\Storage\Blob\Models\GetBlobResult.setMetadata
14+
MicrosoftAzure\Storage\Blob\Models\GetBlobPropertiesResult.setMetadata
15+
MicrosoftAzure\Storage\Blob\Models\GetBlobMetadataResult.setMetadata
16+
MicrosoftAzure\Storage\Blob\Models\CreateContainerOptions.setMetadata
17+
MicrosoftAzure\Storage\Blob\Models\CreateBlobSnapshotOptions.setMetadata
18+
MicrosoftAzure\Storage\Blob\Models\CreateBlobOptions.setMetadata
19+
MicrosoftAzure\Storage\Blob\Models\CopyBlobOptions.setMetadata
20+
MicrosoftAzure\Storage\Blob\Models\Container.setMetadata
21+
MicrosoftAzure\Storage\Queue\Models\CreateQueueOptions.setMetadata
22+
MicrosoftAzure\Storage\Queue\Models\GetQueueMetadataResult.setMetadata
23+
MicrosoftAzure\Storage\Queue\Models\Queue.setMetadata
24+
```
25+
* Removed test code from composer package.
26+
27+
Blob
28+
* Added support for user to upload large files with minimum memory usage.
29+
* Added concurrent upload for Block Blob.
30+
* Added `MicrosoftAzure\Storage\Blob.saveBlobToFile` for user to download a blob into a file.
531

632
2016.08 - version 0.10.2
733

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,14 @@ This project provides a set of PHP client libraries that make it easy to access
2525

2626
* PHP 5.5 or above
2727
* See [composer.json](composer.json) for dependencies
28-
28+
* Required extension for PHP:
29+
php_fileinfo.dll
30+
php_mbstring.dll
31+
php_openssl.dll
32+
php_xsl.dll
33+
34+
* Recommanded extension for PHP:
35+
php_curl.dll
2936

3037
## Download Source Code
3138

build.xml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@
3131
depends="prepare,static-analysis,phpunit,phpdox,-check-failure"
3232
description="Performs static analysis, runs the tests, and generates project documentation"/>
3333

34+
<target name="full-build-large-scale"
35+
depends="prepare,static-analysis,phpunit-large-scale,phpdox,-check-failure"
36+
description="Performs static analysis, runs the tests (including large scale tests), and generates project documentation"/>
37+
3438
<target name="full-build-parallel"
3539
depends="prepare,static-analysis-parallel,phpunit,phpdox,-check-failure"
3640
description="Performs static analysis (executing the tools in parallel), runs the tests, and generates project documentation"/>
@@ -229,6 +233,19 @@
229233
unless="phpunit.done"
230234
depends="prepare"
231235
description="Run unit tests with PHPUnit">
236+
<exec executable="${phpunit}" resultproperty="result.phpunit" taskname="phpunit">
237+
<arg value="--configuration"/>
238+
<arg path="${basedir}/phpunit.xml.dist"/>
239+
<arg value="--exclude-group=large-scale"/>
240+
</exec>
241+
242+
<property name="phpunit.done" value="true"/>
243+
</target>
244+
245+
<target name="phpunit-large-scale"
246+
unless="phpunit.done"
247+
depends="prepare"
248+
description="Run unit tests with PHPUnit, including the large-scale tests">
232249
<exec executable="${phpunit}" resultproperty="result.phpunit" taskname="phpunit">
233250
<arg value="--configuration"/>
234251
<arg path="${basedir}/phpunit.xml.dist"/>
@@ -244,6 +261,7 @@
244261
<exec executable="${phpunit}" failonerror="true" taskname="phpunit">
245262
<arg value="--configuration"/>
246263
<arg path="${basedir}/phpunit.xml.dist"/>
264+
<arg value="--exclude-group=large-scale"/>
247265
<arg value="--no-coverage"/>
248266
</exec>
249267

@@ -257,6 +275,7 @@
257275
<exec executable="${phpunit}" resultproperty="result-ft.phpunit" taskname="phpunit">
258276
<arg value="--configuration"/>
259277
<arg path="${basedir}/phpunit.functional.xml.dist"/>
278+
<arg value="--exclude-group=large-scale"/>
260279
</exec>
261280

262281
<property name="phpunit-ft.done" value="true"/>

composer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@
3232
"psr-4": {
3333
"MicrosoftAzure\\Storage\\Tests\\": "tests/"
3434
}
35+
},
36+
"archive": {
37+
"exclude": ["/tests"]
3538
},
3639
"extra": {
3740
"branch-alias": {

samples/BlobSamples.php

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
createContainerSample($blobClient);
3737

3838
// To upload a file as a blob, use the BlobRestProxy->createBlockBlob method. This operation will
39-
// create the blob if it doesn¡¯t exist, or overwrite it if it does. The code example below assumes
39+
// create the blob if it doesn't exist, or overwrite it if it does. The code example below assumes
4040
// that the container has already been created and uses fopen to open the file as a stream.
4141
uploadBlobSample($blobClient);
4242

@@ -68,7 +68,7 @@ function createContainerSample($blobClient)
6868
try {
6969
// Create container.
7070
$blobClient->createContainer("mycontainer", $createContainerOptions);
71-
} catch(ServiceException $e){
71+
} catch (ServiceException $e) {
7272
$code = $e->getCode();
7373
$error_message = $e->getMessage();
7474
echo $code.": ".$error_message.PHP_EOL;
@@ -83,7 +83,7 @@ function uploadBlobSample($blobClient)
8383
try {
8484
//Upload blob
8585
$blobClient->createBlockBlob("mycontainer", $blob_name, $content);
86-
} catch(ServiceException $e){
86+
} catch (ServiceException $e) {
8787
$code = $e->getCode();
8888
$error_message = $e->getMessage();
8989
echo $code.": ".$error_message.PHP_EOL;
@@ -110,11 +110,10 @@ function listBlobsSample($blobClient)
110110
$blob_list = $blobClient->listBlobs("mycontainer");
111111
$blobs = $blob_list->getBlobs();
112112

113-
foreach($blobs as $blob)
114-
{
113+
foreach ($blobs as $blob) {
115114
echo $blob->getName().": ".$blob->getUrl().PHP_EOL;
116115
}
117-
} catch(ServiceException $e){
116+
} catch (ServiceException $e) {
118117
$code = $e->getCode();
119118
$error_message = $e->getMessage();
120119
echo $code.": ".$error_message.PHP_EOL;

0 commit comments

Comments
 (0)