svn: /pear/packages/XML_RPC2/trunk/XML/RPC2/ Client.php Util/HTTPRequest.php

From: Date: Sat, 26 Feb 2011 17:08:55 +0000
Subject: svn: /pear/packages/XML_RPC2/trunk/XML/RPC2/ Client.php Util/HTTPRequest.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-61285@lists.php.net to get a copy of this message
sergiosgc Sat, 26 Feb 2011 17:08:55 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=308707 Log: Extra guards on setting the httpRequest option on XML_RPC2_Client Changed paths: U pear/packages/XML_RPC2/trunk/XML/RPC2/Client.php U pear/packages/XML_RPC2/trunk/XML/RPC2/Util/HTTPRequest.php Modified: pear/packages/XML_RPC2/trunk/XML/RPC2/Client.php =================================================================== --- pear/packages/XML_RPC2/trunk/XML/RPC2/Client.php 2011-02-26 17:02:48 UTC (rev 308706) +++ pear/packages/XML_RPC2/trunk/XML/RPC2/Client.php 2011-02-26 17:08:55 UTC (rev 308707) @@ -142,7 +142,7 @@ * * @var HTTP_Request2 */ - protected $httpRequest = null; + protected $httpRequest; // }}} // {{{ constructor Modified: pear/packages/XML_RPC2/trunk/XML/RPC2/Util/HTTPRequest.php =================================================================== --- pear/packages/XML_RPC2/trunk/XML/RPC2/Util/HTTPRequest.php 2011-02-26 17:02:48 UTC (rev 308706) +++ pear/packages/XML_RPC2/trunk/XML/RPC2/Util/HTTPRequest.php 2011-02-26 17:08:55 UTC (rev 308707) @@ -189,7 +189,7 @@ if (isset($params['connectionTimeout'])) { $this->_connectionTimeout = $params['connectionTimeout']; } - if (isset($params['httpRequest'])) { + if (isset($params['httpRequest']) && $params['httpRequest'] instanceof HTTP_Request2) { $this->_httpRequest = $params['httpRequest']; } }

« previous php.pear.cvs (#61285) next »