Просмотр исходного кода

ZF-5413: using "$var === null" instaed of "is_null($var)"

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@23166 44c647ce-9c0f-0410-b52a-842ac1e357ba
mabe 15 лет назад
Родитель
Сommit
29ef76a14f

+ 2 - 2
library/Zend/Service/WindowsAzure/Credentials/SharedKey.php

@@ -115,7 +115,7 @@ class Zend_Service_WindowsAzure_Credentials_SharedKey
 		}
 		
 		// Build canonicalized headers
-		if (!is_null($headers)) {
+		if ($headers !== null) {
 			foreach ($headers as $header => $value) {
 				if (is_bool($value)) {
 					$value = $value === true ? 'True' : 'False';
@@ -149,7 +149,7 @@ class Zend_Service_WindowsAzure_Credentials_SharedKey
 			 && strtoupper($httpVerb) != Zend_Http_Client::HEAD) {
 			$contentLength = 0;
 			
-			if (!is_null($rawData)) {
+			if ($rawData !== null) {
 				$contentLength = strlen($rawData);
 			}
 		}

+ 3 - 3
library/Zend/Service/WindowsAzure/Diagnostics/Manager.php

@@ -101,7 +101,7 @@ class Zend_Service_WindowsAzure_Diagnostics_Manager
 	 */
 	public function configurationForRoleInstanceExists($roleInstance = null)
 	{
-		if (is_null($roleInstance)) {
+		if ($roleInstance === null) {
 			throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Role instance should be specified. Try reading $_SERVER[\'RdRoleId\'] for this information if the application is hosted on Windows Azure Fabric or Development Fabric.');
 		}
 
@@ -160,7 +160,7 @@ class Zend_Service_WindowsAzure_Diagnostics_Manager
 	 */
 	public function getConfigurationForRoleInstance($roleInstance = null)
 	{
-		if (is_null($roleInstance)) {
+		if ($roleInstance === null) {
 			throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Role instance should be specified. Try reading $_SERVER[\'RdRoleId\'] for this information if the application is hosted on Windows Azure Fabric or Development Fabric.');
 		}
 
@@ -182,7 +182,7 @@ class Zend_Service_WindowsAzure_Diagnostics_Manager
 	 */
 	public function setConfigurationForRoleInstance($roleInstance = null, Zend_Service_WindowsAzure_Diagnostics_ConfigurationInstance $configuration)
 	{
-		if (is_null($roleInstance)) {
+		if ($roleInstance === null) {
 			throw new Zend_Service_WindowsAzure_Diagnostics_Exception('Role instance should be specified. Try reading $_SERVER[\'RdRoleId\'] for this information if the application is hosted on Windows Azure Fabric or Development Fabric.');
 		}
 

+ 7 - 7
library/Zend/Service/WindowsAzure/Storage.php

@@ -205,13 +205,13 @@ class Zend_Service_WindowsAzure_Storage
 			$this->_usePathStyleUri = true;
 		}
 		
-		if (is_null($this->_credentials)) {
+		if ($this->_credentials === null) {
 		    $this->_credentials = new Zend_Service_WindowsAzure_Credentials_SharedKey(
 		    	$this->_accountName, $this->_accountKey, $this->_usePathStyleUri);
 		}
 		
 		$this->_retryPolicy = $retryPolicy;
-		if (is_null($this->_retryPolicy)) {
+		if ($this->_retryPolicy === null) {
 		    $this->_retryPolicy = Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract::noRetry();
 		}
 		
@@ -257,7 +257,7 @@ class Zend_Service_WindowsAzure_Storage
 	public function setRetryPolicy(Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract $retryPolicy = null)
 	{
 		$this->_retryPolicy = $retryPolicy;
-		if (is_null($this->_retryPolicy)) {
+		if ($this->_retryPolicy === null) {
 		    $this->_retryPolicy = Zend_Service_WindowsAzure_RetryPolicy_RetryPolicyAbstract::noRetry();
 		}
 	}
@@ -372,7 +372,7 @@ class Zend_Service_WindowsAzure_Storage
 		}
 			
 		// Clean headers
-		if (is_null($headers)) {
+		if ($headers === null) {
 		    $headers = array();
 		}
 		
@@ -421,7 +421,7 @@ class Zend_Service_WindowsAzure_Storage
 	 */
 	protected function _parseResponse(Zend_Http_Response $response = null)
 	{
-		if (is_null($response)) {
+		if ($response === null) {
 			throw new Zend_Service_WindowsAzure_Exception('Response should not be null.');
 		}
 		
@@ -503,7 +503,7 @@ class Zend_Service_WindowsAzure_Storage
 	protected function _parseMetadataElement($element = null)
 	{
 		// Metadata present?
-		if (!is_null($element) && isset($element->Metadata) && !is_null($element->Metadata)) {
+		if ($element !== null && isset($element->Metadata) && $element->Metadata !== null) {
 			return get_object_vars($element->Metadata);
 		}
 
@@ -521,7 +521,7 @@ class Zend_Service_WindowsAzure_Storage
 	    $tz = @date_default_timezone_get();
 	    @date_default_timezone_set('UTC');
 	    
-	    if (is_null($timestamp)) {
+	    if ($timestamp === null) {
 	        $timestamp = time();
 	    }
 	        

+ 2 - 2
library/Zend/Service/WindowsAzure/Storage/Batch.php

@@ -149,7 +149,7 @@ class Zend_Service_WindowsAzure_Storage_Batch
 		}
 			
 		// Clean headers
-		if (is_null($headers)) {
+		if ($headers === null) {
 		    $headers = array();
 		}
 		    
@@ -161,7 +161,7 @@ class Zend_Service_WindowsAzure_Storage_Batch
 		$requestUrl     = $this->getBaseUrl() . $path . $queryString;
 		
 		// Generate $rawData
-		if (is_null($rawData)) {
+		if ($rawData === null) {
 		    $rawData = '';
 		}
 		    

+ 2 - 2
library/Zend/Service/WindowsAzure/Storage/BatchStorageAbstract.php

@@ -75,7 +75,7 @@ abstract class Zend_Service_WindowsAzure_Storage_BatchStorageAbstract
      */
     public function setCurrentBatch(Zend_Service_WindowsAzure_Storage_Batch $batch = null)
     {
-        if (!is_null($batch) && $this->isInBatch()) {
+        if ($batch !== null && $this->isInBatch()) {
             throw new Zend_Service_WindowsAzure_Exception('Only one batch can be active at a time.');
         }
         $this->_currentBatch = $batch;
@@ -98,7 +98,7 @@ abstract class Zend_Service_WindowsAzure_Storage_BatchStorageAbstract
      */
     public function isInBatch()
     {
-        return !is_null($this->_currentBatch);
+        return $this->_currentBatch !== null;
     }
     
     /**

+ 37 - 37
library/Zend/Service/WindowsAzure/Storage/Blob.php

@@ -353,7 +353,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 		$headers = array();
 
 		// Acl specified?
-		if ($acl != self::ACL_PRIVATE && !is_null($acl) && $acl != '') {
+		if ($acl != self::ACL_PRIVATE && $acl !== null && $acl != '') {
 			$headers[Zend_Service_WindowsAzure_Storage::PREFIX_STORAGE_HEADER . 'blob-public-access'] = $acl;
 		}
 
@@ -524,16 +524,16 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 	{
 		// Build query string
 		$queryString = array('comp=list');
-		if (!is_null($prefix)) {
+		if ($prefix !== null) {
 			$queryString[] = 'prefix=' . $prefix;
 		}
-		if (!is_null($maxResults)) {
+		if ($maxResults !== null) {
 			$queryString[] = 'maxresults=' . $maxResults;
 		}
-		if (!is_null($marker)) {
+		if ($marker !== null) {
 			$queryString[] = 'marker=' . $marker;
 		}
-		if (!is_null($include)) {
+		if ($include !== null) {
 			$queryString[] = 'include=' . $include;
 		}
 		$queryString = self::createQueryStringFromArray($queryString);
@@ -545,7 +545,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 			$xmlMarker = (string)$this->_parseResponse($response)->NextMarker;
 
 			$containers = array();
-			if (!is_null($xmlContainers)) {
+			if ($xmlContainers !== null) {
 				for ($i = 0; $i < count($xmlContainers); $i++) {
 					$containers[] = new Zend_Service_WindowsAzure_Storage_BlobContainer(
 					(string)$xmlContainers[$i]->Name,
@@ -556,12 +556,12 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 				}
 			}
 			$currentResultCount = $currentResultCount + count($containers);
-			if (!is_null($maxResults) && $currentResultCount < $maxResults) {
-				if (!is_null($xmlMarker) && $xmlMarker != '') {
+			if ($maxResults !== null && $currentResultCount < $maxResults) {
+				if ($xmlMarker !== null && $xmlMarker != '') {
 					$containers = array_merge($containers, $this->listContainers($prefix, $maxResults, $xmlMarker, $include, $currentResultCount));
 				}
 			}
-			if (!is_null($maxResults) && count($containers) > $maxResults) {
+			if ($maxResults !== null && count($containers) > $maxResults) {
 				$containers = array_slice($containers, 0, $maxResults);
 			}
 			 
@@ -642,7 +642,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Create metadata headers
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 		$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -788,7 +788,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Headers
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 			
@@ -847,7 +847,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 			// Create metadata headers
 			$headers = array();
-			if (!is_null($leaseId)) {
+			if ($leaseId !== null) {
 				$headers['x-ms-lease-id'] = $leaseId;
 			}
 			$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -904,13 +904,13 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Headers
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 
 		// Build query string
 		$queryString = array('comp=blocklist', 'blocklisttype=' . $blockListType);
-		if (!is_null($snapshotId)) {
+		if ($snapshotId !== null) {
 			$queryString[] = 'snapshot=' . $snapshotId;
 		}
 		$queryString = self::createQueryStringFromArray($queryString);
@@ -981,7 +981,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Create metadata headers
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 		$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -1063,7 +1063,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Create metadata headers
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 
@@ -1122,7 +1122,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Create metadata headers
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 
@@ -1202,7 +1202,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Create metadata headers
 		$headers = array();
-		if (!is_null($destinationLeaseId)) {
+		if ($destinationLeaseId !== null) {
 			$headers['x-ms-lease-id'] = $destinationLeaseId;
 		}
 		$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -1214,7 +1214,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Resource names
 		$sourceResourceName = self::createResourceName($sourceContainerName, $sourceBlobName);
-		if (!is_null($sourceSnapshotId)) {
+		if ($sourceSnapshotId !== null) {
 			$sourceResourceName .= '?snapshot=' . $sourceSnapshotId;
 		}
 		$destinationResourceName = self::createResourceName($destinationContainerName, $destinationBlobName);
@@ -1299,14 +1299,14 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Build query string
 		$queryString = array();
-		if (!is_null($snapshotId)) {
+		if ($snapshotId !== null) {
 			$queryString[] = 'snapshot=' . $snapshotId;
 		}
 		$queryString = self::createQueryStringFromArray($queryString);
 
 		// Additional headers?
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 		foreach ($additionalHeaders as $key => $value) {
@@ -1353,14 +1353,14 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Build query string
 		$queryString = array();
-		if (!is_null($snapshotId)) {
+		if ($snapshotId !== null) {
 			$queryString[] = 'snapshot=' . $snapshotId;
 		}
 		$queryString = self::createQueryStringFromArray($queryString);
 		 
 		// Additional headers?
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 		foreach ($additionalHeaders as $key => $value) {
@@ -1459,7 +1459,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Create metadata headers
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 		$headers = array_merge($headers, $this->_generateMetadataHeaders($metadata));
@@ -1509,7 +1509,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 		$headers = array();
 
 		// Lease set?
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 
@@ -1580,14 +1580,14 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 		// Build query string
 		$queryString = array();
-		if (!is_null($snapshotId)) {
+		if ($snapshotId !== null) {
 			$queryString[] = 'snapshot=' . $snapshotId;
 		}
 		$queryString = self::createQueryStringFromArray($queryString);
 			
 		// Additional headers?
 		$headers = array();
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 		foreach ($additionalHeaders as $key => $value) {
@@ -1675,7 +1675,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 		// Additional headers?
 		$headers = array();
 		$headers['x-ms-lease-action'] = strtolower($leaseAction);
-		if (!is_null($leaseId)) {
+		if ($leaseId !== null) {
 			$headers['x-ms-lease-id'] = $leaseId;
 		}
 
@@ -1719,19 +1719,19 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 			
 		// Build query string
 		$queryString = array('restype=container', 'comp=list');
-		if (!is_null($prefix)) {
+		if ($prefix !== null) {
 			$queryString[] = 'prefix=' . $prefix;
 		}
 		if ($delimiter !== '') {
 			$queryString[] = 'delimiter=' . $delimiter;
 		}
-		if (!is_null($maxResults)) {
+		if ($maxResults !== null) {
 			$queryString[] = 'maxresults=' . $maxResults;
 		}
-		if (!is_null($marker)) {
+		if ($marker !== null) {
 			$queryString[] = 'marker=' . $marker;
 		}
-		if (!is_null($include)) {
+		if ($include !== null) {
 			$queryString[] = 'include=' . $include;
 		}
 		$queryString = self::createQueryStringFromArray($queryString);
@@ -1744,7 +1744,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 
 			// Blobs
 			$xmlBlobs = $this->_parseResponse($response)->Blobs->Blob;
-			if (!is_null($xmlBlobs)) {
+			if ($xmlBlobs !== null) {
 				for ($i = 0; $i < count($xmlBlobs); $i++) {
 					$properties = (array)$xmlBlobs[$i]->Properties;
 						
@@ -1771,7 +1771,7 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 			// Blob prefixes (folders)
 			$xmlBlobs = $this->_parseResponse($response)->Blobs->BlobPrefix;
 				
-			if (!is_null($xmlBlobs)) {
+			if ($xmlBlobs !== null) {
 				for ($i = 0; $i < count($xmlBlobs); $i++) {
 					$blobs[] = new Zend_Service_WindowsAzure_Storage_BlobInstance(
 					$containerName,
@@ -1796,12 +1796,12 @@ class Zend_Service_WindowsAzure_Storage_Blob extends Zend_Service_WindowsAzure_S
 			// More blobs?
 			$xmlMarker = (string)$this->_parseResponse($response)->NextMarker;
 			$currentResultCount = $currentResultCount + count($blobs);
-			if (!is_null($maxResults) && $currentResultCount < $maxResults) {
-				if (!is_null($xmlMarker) && $xmlMarker != '') {
+			if ($maxResults !== null && $currentResultCount < $maxResults) {
+				if ($xmlMarker !== null && $xmlMarker != '') {
 					$blobs = array_merge($blobs, $this->listBlobs($containerName, $prefix, $delimiter, $maxResults, $marker, $include, $currentResultCount));
 				}
 			}
-			if (!is_null($maxResults) && count($blobs) > $maxResults) {
+			if ($maxResults !== null && count($blobs) > $maxResults) {
 				$blobs = array_slice($blobs, 0, $maxResults);
 			}
 				

+ 3 - 3
library/Zend/Service/WindowsAzure/Storage/Blob/Stream.php

@@ -90,7 +90,7 @@ class Zend_Service_WindowsAzure_Storage_Blob_Stream
      */
     protected function _getStorageClient($path = '')
     {
-        if (is_null($this->_storageClient)) {
+        if ($this->_storageClient === null) {
             $url = explode(':', $path);
             if (!$url) {
                 throw new Zend_Service_WindowsAzure_Exception('Could not parse path "' . $path . '".');
@@ -371,7 +371,7 @@ class Zend_Service_WindowsAzure_Storage_Blob_Stream
         } catch (Zend_Service_WindowsAzure_Exception $ex) {
             // Unexisting file...
         }
-        if (!is_null($info)) {
+        if ($info !== null) {
             $stat['size']  = $info->Size;
             $stat['atime'] = time();
         }     
@@ -456,7 +456,7 @@ class Zend_Service_WindowsAzure_Storage_Blob_Stream
         } catch (Zend_Service_WindowsAzure_Exception $ex) {
             // Unexisting file...
         }
-        if (!is_null($info)) {
+        if ($info !== null) {
             $stat['size']  = $info->Size;
             $stat['atime'] = time();
         } 

+ 1 - 1
library/Zend/Service/WindowsAzure/Storage/DynamicTableEntity.php

@@ -86,7 +86,7 @@ class Zend_Service_WindowsAzure_Storage_DynamicTableEntity extends Zend_Service_
         } else {
             if (!array_key_exists(strtolower($name), $this->_dynamicProperties)) {
                 // Determine type?
-                if (is_null($type)) {
+                if ($type === null) {
                     $type = 'Edm.String';
                     if (is_int($value)) {
                         $type = 'Edm.Int32';

+ 12 - 12
library/Zend/Service/WindowsAzure/Storage/Queue.php

@@ -279,16 +279,16 @@ class Zend_Service_WindowsAzure_Storage_Queue extends Zend_Service_WindowsAzure_
 	{
 	    // Build query string
 		$queryString = array('comp=list');
-        if (!is_null($prefix)) {
+        if ($prefix !== null) {
 	        $queryString[] = 'prefix=' . $prefix;
         }
-	    if (!is_null($maxResults)) {
+	    if ($maxResults !== null) {
 	        $queryString[] = 'maxresults=' . $maxResults;
 	    }
-	    if (!is_null($marker)) {
+	    if ($marker !== null) {
 	        $queryString[] = 'marker=' . $marker;
 	    }
-		if (!is_null($include)) {
+		if ($include !== null) {
 	        $queryString[] = 'include=' . $include;
 	    }
 	    $queryString = self::createQueryStringFromArray($queryString);
@@ -300,7 +300,7 @@ class Zend_Service_WindowsAzure_Storage_Queue extends Zend_Service_WindowsAzure_
 			$xmlMarker = (string)$this->_parseResponse($response)->NextMarker;
 
 			$queues = array();
-			if (!is_null($xmlQueues)) {
+			if ($xmlQueues !== null) {
 				for ($i = 0; $i < count($xmlQueues); $i++) {
 					$queues[] = new Zend_Service_WindowsAzure_Storage_QueueInstance(
 						(string)$xmlQueues[$i]->Name,
@@ -309,12 +309,12 @@ class Zend_Service_WindowsAzure_Storage_Queue extends Zend_Service_WindowsAzure_
 				}
 			}
 			$currentResultCount = $currentResultCount + count($queues);
-			if (!is_null($maxResults) && $currentResultCount < $maxResults) {
-    			if (!is_null($xmlMarker) && $xmlMarker != '') {
+			if ($maxResults !== null && $currentResultCount < $maxResults) {
+    			if ($xmlMarker !== null && $xmlMarker != '') {
     			    $queues = array_merge($queues, $this->listQueues($prefix, $maxResults, $xmlMarker, $include, $currentResultCount));
     			}
 			}
-			if (!is_null($maxResults) && count($queues) > $maxResults) {
+			if ($maxResults !== null && count($queues) > $maxResults) {
 			    $queues = array_slice($queues, 0, $maxResults);
 			}
 			    
@@ -346,13 +346,13 @@ class Zend_Service_WindowsAzure_Storage_Queue extends Zend_Service_WindowsAzure_
 		if ($message == '') {
 		    throw new Zend_Service_WindowsAzure_Exception('Message is not specified.');
 		}
-		if (!is_null($ttl) && ($ttl <= 0 || $ttl > self::MAX_MESSAGE_SIZE)) {
+		if ($ttl !== null && ($ttl <= 0 || $ttl > self::MAX_MESSAGE_SIZE)) {
 		    throw new Zend_Service_WindowsAzure_Exception('Message TTL is invalid. Maximal TTL is 7 days (' . self::MAX_MESSAGE_SIZE . ' seconds) and should be greater than zero.');
 		}
 		    
 	    // Build query string
 		$queryString = array();
-        if (!is_null($ttl)) {
+        if ($ttl !== null) {
 	        $queryString[] = 'messagettl=' . $ttl;
         }
 	    $queryString = self::createQueryStringFromArray($queryString);
@@ -392,7 +392,7 @@ class Zend_Service_WindowsAzure_Storage_Queue extends Zend_Service_WindowsAzure_
 		if ($numOfMessages < 1 || $numOfMessages > 32 || intval($numOfMessages) != $numOfMessages) {
 		    throw new Zend_Service_WindowsAzure_Exception('Invalid number of messages to retrieve.');
 		}
-		if (!is_null($visibilityTimeout) && ($visibilityTimeout <= 0 || $visibilityTimeout > 7200)) {
+		if ($visibilityTimeout !== null && ($visibilityTimeout <= 0 || $visibilityTimeout > 7200)) {
 		    throw new Zend_Service_WindowsAzure_Exception('Visibility timeout is invalid. Maximum value is 2 hours (7200 seconds) and should be greater than zero.');
 		}
 		    
@@ -404,7 +404,7 @@ class Zend_Service_WindowsAzure_Storage_Queue extends Zend_Service_WindowsAzure_
     	if ($numOfMessages > 1) {
 	        $queryString[] = 'numofmessages=' . $numOfMessages;
     	}
-    	if (!$peek && !is_null($visibilityTimeout)) {
+    	if (!$peek && $visibilityTimeout !== null) {
 	        $queryString[] = 'visibilitytimeout=' . $visibilityTimeout;
     	}   
 	    $queryString = self::createQueryStringFromArray($queryString);

+ 6 - 6
library/Zend/Service/WindowsAzure/Storage/Table.php

@@ -298,7 +298,7 @@ class Zend_Service_WindowsAzure_Storage_Table
 		if ($tableName === '') {
 			throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
 		}
-		if (is_null($entity)) {
+		if ($entity === null) {
 			throw new Zend_Service_WindowsAzure_Exception('Entity is not specified.');
 		}
 		                     
@@ -368,7 +368,7 @@ class Zend_Service_WindowsAzure_Storage_Table
 		if ($tableName === '') {
 			throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
 		}
-		if (is_null($entity)) {
+		if ($entity === null) {
 			throw new Zend_Service_WindowsAzure_Exception('Entity is not specified.');
 		}
 		                     
@@ -524,7 +524,7 @@ class Zend_Service_WindowsAzure_Storage_Table
 		}
 		
 		// Add continuation querystring parameters?
-		if (!is_null($nextPartitionKey) && !is_null($nextRowKey)) {
+		if ($nextPartitionKey !== null && $nextRowKey !== null) {
 		    if ($queryString !== '') {
 		        $queryString .= '&';
 		    }
@@ -693,7 +693,7 @@ class Zend_Service_WindowsAzure_Storage_Table
 		if ($tableName === '') {
 			throw new Zend_Service_WindowsAzure_Exception('Table name is not specified.');
 		}
-		if (is_null($entity)) {
+		if ($entity === null) {
 			throw new Zend_Service_WindowsAzure_Exception('Entity is not specified.');
 		}
 		                     
@@ -804,12 +804,12 @@ class Zend_Service_WindowsAzure_Storage_Table
 		    if ($azureValue->Type != '') {
 		        $value[] = ' m:type="' . $azureValue->Type . '"';
 		    }
-		    if (is_null($azureValue->Value)) {
+		    if ($azureValue->Value === null) {
 		        $value[] = ' m:null="true"'; 
 		    }
 		    $value[] = '>';
 		    
-		    if (!is_null($azureValue->Value)) {
+		    if ($azureValue->Value !== null) {
 		        if (strtolower($azureValue->Type) == 'edm.boolean') {
 		            $value[] = ($azureValue->Value == true ? '1' : '0');
 		        } else {

+ 2 - 2
library/Zend/Service/WindowsAzure/Storage/TableEntity.php

@@ -268,7 +268,7 @@ class Zend_Service_WindowsAzure_Storage_TableEntity
         $properties = $type->getProperties();
         foreach ($properties as $property) {
             $accessor = self::getAzureAccessor($property);
-            if (!is_null($accessor)) {
+            if ($accessor !== null) {
                 $azureAccessors[] = $accessor;
             }
         }
@@ -277,7 +277,7 @@ class Zend_Service_WindowsAzure_Storage_TableEntity
         $methods = $type->getMethods();
         foreach ($methods as $method) {
             $accessor = self::getAzureAccessor($method);
-            if (!is_null($accessor)) {
+            if ($accessor !== null) {
                 $azureAccessors[] = $accessor;
             }
         }

+ 5 - 5
library/Zend/Service/WindowsAzure/Storage/TableEntityQuery.php

@@ -129,7 +129,7 @@ class Zend_Service_WindowsAzure_Storage_TableEntityQuery
 	{
 	    $condition = $this->_replaceOperators($condition);
 	    
-	    if (!is_null($value)) {
+	    if ($value !== null) {
 	        $condition = $this->_quoteInto($condition, $value);
 	    }
 	    
@@ -211,7 +211,7 @@ class Zend_Service_WindowsAzure_Storage_TableEntityQuery
 			$query[] = '$orderby=' . ($urlEncode ? self::encodeQuery($orderBy) : $orderBy);
 		}
 		
-		if (!is_null($this->_top)) {
+		if ($this->_top !== null) {
 			$query[] = '$top=' . $this->_top;
 		}
 		
@@ -234,15 +234,15 @@ class Zend_Service_WindowsAzure_Storage_TableEntityQuery
 	    if ($includeParentheses) {
 	        $identifier .= '(';
 	        
-	        if (!is_null($this->_partitionKey)) {
+	        if ($this->_partitionKey !== null) {
 	            $identifier .= 'PartitionKey=\'' . $this->_partitionKey . '\'';
 	        }
 	            
-	        if (!is_null($this->_partitionKey) && !is_null($this->_rowKey)) {
+	        if ($this->_partitionKey !== null && $this->_rowKey !== null) {
 	            $identifier .= ', ';
 	        }
 	            
-	        if (!is_null($this->_rowKey)) {
+	        if ($this->_rowKey !== null) {
 	            $identifier .= 'RowKey=\'' . $this->_rowKey . '\'';
 	        }