removed references on new statements and method returns

This commit is contained in:
RobbBienert 2013-10-17 00:37:56 +02:00
parent f96b24bb3c
commit 99a60dec68

View file

@ -271,10 +271,10 @@ class PEAR
$ec = 'PEAR_Error';
}
if ($skipmsg) {
$a = &new $ec($code, $mode, $options, $userinfo);
$a = new $ec($code, $mode, $options, $userinfo);
return $a;
} else {
$a = &new $ec($message, $code, $mode, $options, $userinfo);
$a = new $ec($message, $code, $mode, $options, $userinfo);
return $a;
}
}
@ -660,7 +660,7 @@ class HTTP_Request {
function HTTP_Request($url = '', $params = array())
{
$this->_sock = &new Net_Socket();
$this->_sock = new Net_Socket();
$this->_method = HTTP_REQUEST_METHOD_GET;
$this->_http = HTTP_REQUEST_HTTP_VER_1_1;
$this->_requestHeaders = array();
@ -730,7 +730,7 @@ class HTTP_Request {
function setURL($url)
{
$this->_url = &new Net_URL($url, $this->_useBrackets);
$this->_url = new Net_URL($url, $this->_useBrackets);
if (!empty($this->_url->user) || !empty($this->_url->pass)) {
$this->setBasicAuth($this->_url->user, $this->_url->pass);
@ -889,7 +889,7 @@ class HTTP_Request {
$this->_notify('sentRequest');
$this->_response = &new HTTP_Response($this->_sock, $this->_listeners);
$this->_response = new HTTP_Response($this->_sock, $this->_listeners);
$err = $this->_response->process($this->_saveBody && $saveBody);
}
@ -909,7 +909,7 @@ class HTTP_Request {
// Absolute URL
if (preg_match('/^https?:\/\//i', $redirect)) {
$this->_url = &new Net_URL($redirect);
$this->_url = new Net_URL($redirect);
$this->addHeader('Host', $this->_generateHostHeader());
// Absolute path
} elseif ($redirect{0} == '/') {