@@ -327,7 +327,7 @@ public static function getBucket($bucket, $prefix = null, $marker = null, $maxKe
327327			$ rest ->setParameter ('marker ' , $ nextMarker );
328328			if  ($ delimiter  !== null  && $ delimiter  !== '' ) $ rest ->setParameter ('delimiter ' , $ delimiter );
329329
330- 			if  (($ response  = $ rest ->getResponse (true )) == false  || $ response ->code  !== 200 ) break ;
330+ 			if  (($ response  = $ rest ->getResponse ()) == false  || $ response ->code  !== 200 ) break ;
331331
332332			if  (isset ($ response ->body , $ response ->body ->Contents ))
333333			foreach  ($ response ->body ->Contents  as  $ c )
@@ -728,7 +728,7 @@ public static function setBucketLogging($bucket, $targetBucket, $targetPrefix =
728728			$ rest ->error  = array ('code '  => $ rest ->code , 'message '  => 'Unexpected HTTP status ' );
729729		if  ($ rest ->error  !== false )
730730		{
731- 			self ::__triggerError (sprintf ("S3::setBucketLogging( {$ bucket },  {$ uri  }): [%s] %s " ,
731+ 			self ::__triggerError (sprintf ("S3::setBucketLogging( {$ bucket },  {$ targetBucket  }): [%s] %s " ,
732732			$ rest ->error ['code ' ], $ rest ->error ['message ' ]), __FILE__ , __LINE__ );
733733			return  false ;
734734		}
@@ -1773,7 +1773,7 @@ public function getResponse()
17731773		{
17741774			curl_setopt ($ curl , CURLOPT_PROXY , S3 ::$ proxy ['host ' ]);
17751775			curl_setopt ($ curl , CURLOPT_PROXYTYPE , S3 ::$ proxy ['type ' ]);
1776- 			if  (isset (S3 ::$ proxy ['user ' ], S3 ::$ proxy ['pass ' ]) && $ proxy ['user ' ] != null  && $ proxy ['pass ' ] != null )
1776+ 			if  (isset (S3 ::$ proxy ['user ' ], S3 ::$ proxy ['pass ' ]) && S3 :: $ proxy ['user ' ] != null  && S3 :: $ proxy ['pass ' ] != null )
17771777				curl_setopt ($ curl , CURLOPT_PROXYUSERPWD , sprintf ('%s:%s ' , S3 ::$ proxy ['user ' ], S3 ::$ proxy ['pass ' ]));
17781778		}
17791779
0 commit comments