ZF-8860: Zend_Service_WindowsAzure requires cURL

Description

Zend_Service_WindowsAzure_Storage::__construct generates a default Zend_Http_Client with constants of CURLOPT_*

Comments

The constants will remain in there, but will only be used if function_exists(' curl_init'). Leaving the initialization out would cause inconvenience for users wanting to take advantage of cURL.

Are you sure:


D:\Users\mabe\workspace\Zend>"D:\Users\mabe\Program Files\php\debug\php5.2.9\php
.exe" ZF-STD-TRUNK\tests\Zend\Service\WindowsAzure\AllTests.php
PHPUnit 3.3.9 by Sebastian Bergmann.

...................EE

Time: 1 second

There were 2 errors:

1) testConstructorForDevstore(Zend_Service_WindowsAzure_StorageTest)
Use of undefined constant CURLOPT_FOLLOWLOCATION - assumed 'CURLOPT_FOLLOWLOCATI
ON'
D:\Users\mabe\workspace\Zend\ZF-STD-TRUNK\library\Zend\Service\WindowsAzure\Stor
age.php:217
D:\Users\mabe\workspace\Zend\ZF-STD-TRUNK\tests\Zend\Service\WindowsAzure\Storag
eTest.php:58
D:\Users\mabe\workspace\Zend\ZF-STD-TRUNK\tests\Zend\Service\WindowsAzure\AllTes
ts.php:57
D:\Users\mabe\workspace\Zend\ZF-STD-TRUNK\tests\Zend\Service\WindowsAzure\AllTes
ts.php:90

2) testConstructorForProduction(Zend_Service_WindowsAzure_StorageTest)
Use of undefined constant CURLOPT_FOLLOWLOCATION - assumed 'CURLOPT_FOLLOWLOCATI
ON'
D:\Users\mabe\workspace\Zend\ZF-STD-TRUNK\library\Zend\Service\WindowsAzure\Stor
age.php:217
D:\Users\mabe\workspace\Zend\ZF-STD-TRUNK\tests\Zend\Service\WindowsAzure\Storag
eTest.php:67
D:\Users\mabe\workspace\Zend\ZF-STD-TRUNK\tests\Zend\Service\WindowsAzure\AllTes
ts.php:57
D:\Users\mabe\workspace\Zend\ZF-STD-TRUNK\tests\Zend\Service\WindowsAzure\AllTes
ts.php:90

FAILURES!
Tests: 21, Assertions: 43, Errors: 2.

[PHP Modules]
bcmath
bz2
calendar
com_dotnet
ctype
date
dom
filter
ftp
gd
hash
iconv
json
ldap
libxml
mbstring
mcrypt
mhash
mysqli
odbc
openssl
pcre
PDO
pdo_mysql
pdo_sqlite
pgsql
Reflection
session
SimpleXML
soap
SPL
SQLite
standard
tokenizer
wddx
XCache
xdebug
xml
xmlreader
xmlwriter
xsl
zlib

[Zend Modules]
XCache
Xdebug

Still have to commit to SVN though :-)