original_string: public static function deleteDistribution($dist)
  	{
  		if (!extension_loaded('openssl'))
  		{
  			self::__triggerError(sprintf("S3::deleteDistribution({$dist['id']}): %s",
  			"CloudFront functionality requires SSL"), __FILE__, __LINE__);
  			return false;
  		}
  
  		$useSSL = self::$useSSL;
  
  		self::$useSSL = true; // CloudFront requires SSL
  		$rest = new S3Request('DELETE', '', '2008-06-30/distribution/'.$dist['id'], 'cloudfront.amazonaws.com');
  		$rest->setHeader('If-Match', $dist['hash']);
  		$rest = self::__getCloudFrontResponse($rest);
  
  		self::$useSSL = $useSSL;
  
  		if ($rest->error === false && $rest->code !== 204)
  			$rest->error = array('code' => $rest->code, 'message' => 'Unexpected HTTP status');
  		if ($rest->error !== false)
  		{
  			self::__triggerError(sprintf("S3::deleteDistribution({$dist['id']}): [%s] %s",
  			$rest->error['code'], $rest->error['message']), __FILE__, __LINE__);
  			return false;
  		}
  		return true;
  	}
code: public static function deleteDistribution($dist)
  	{
  		if (!extension_loaded('openssl'))
  		{
  			self::__triggerError(sprintf("S3::deleteDistribution({$dist['id']}): %s",
  			"CloudFront functionality requires SSL"), __FILE__, __LINE__);
  			return false;
  		}
  
  		$useSSL = self::$useSSL;
  
  		self::$useSSL = true; // CloudFront requires SSL
  		$rest = new S3Request('DELETE', '', '2008-06-30/distribution/'.$dist['id'], 'cloudfront.amazonaws.com');
  		$rest->setHeader('If-Match', $dist['hash']);
  		$rest = self::__getCloudFrontResponse($rest);
  
  		self::$useSSL = $useSSL;
  
  		if ($rest->error === false && $rest->code !== 204)
  			$rest->error = array('code' => $rest->code, 'message' => 'Unexpected HTTP status');
  		if ($rest->error !== false)
  		{
  			self::__triggerError(sprintf("S3::deleteDistribution({$dist['id']}): [%s] %s",
  			$rest->error['code'], $rest->error['message']), __FILE__, __LINE__);
  			return false;
  		}
  		return true;
  	}
code_tokens: public static function deleteDistribution ( $ dist ) { if ( ! extension_loaded ( 'openssl' ) ) { self :: __triggerError ( sprintf ( "S3::deleteDistribution({$dist['id']}): %s" , "CloudFront functionality requires SSL" ) , __FILE__ , __LINE__ ) ; return false ; } $ useSSL = self :: $ useSSL ; self :: $ useSSL = true ; // CloudFront requires SSL $ rest = new S3Request ( 'DELETE' , '' , '2008-06-30/distribution/' . $ dist [ 'id' ] , 'cloudfront.amazonaws.com' ) ; $ rest -> setHeader ( 'If-Match' , $ dist [ 'hash' ] ) ; $ rest = self :: __getCloudFrontResponse ( $ rest ) ; self :: $ useSSL = $ useSSL ; if ( $ rest -> error === false && $ rest -> code !== 204 ) $ rest -> error = array ( 'code' => $ rest -> code , 'message' => 'Unexpected HTTP status' ) ; if ( $ rest -> error !== false ) { self :: __triggerError ( sprintf ( "S3::deleteDistribution({$dist['id']}): [%s] %s" , $ rest -> error [ 'code' ] , $ rest -> error [ 'message' ] ) , __FILE__ , __LINE__ ) ; return false ; } return true ; }
docstring: Delete a CloudFront distribution
  
  @param array $dist Distribution array info identical to output of getDistribution()
  @return boolean
docstring_tokens: Delete a CloudFront distribution