removed references on new statements and method returns
This commit is contained in:
parent
f96b24bb3c
commit
99a60dec68
1 changed files with 6 additions and 6 deletions
|
@ -271,10 +271,10 @@ class PEAR
|
||||||
$ec = 'PEAR_Error';
|
$ec = 'PEAR_Error';
|
||||||
}
|
}
|
||||||
if ($skipmsg) {
|
if ($skipmsg) {
|
||||||
$a = &new $ec($code, $mode, $options, $userinfo);
|
$a = new $ec($code, $mode, $options, $userinfo);
|
||||||
return $a;
|
return $a;
|
||||||
} else {
|
} else {
|
||||||
$a = &new $ec($message, $code, $mode, $options, $userinfo);
|
$a = new $ec($message, $code, $mode, $options, $userinfo);
|
||||||
return $a;
|
return $a;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -660,7 +660,7 @@ class HTTP_Request {
|
||||||
|
|
||||||
function HTTP_Request($url = '', $params = array())
|
function HTTP_Request($url = '', $params = array())
|
||||||
{
|
{
|
||||||
$this->_sock = &new Net_Socket();
|
$this->_sock = new Net_Socket();
|
||||||
$this->_method = HTTP_REQUEST_METHOD_GET;
|
$this->_method = HTTP_REQUEST_METHOD_GET;
|
||||||
$this->_http = HTTP_REQUEST_HTTP_VER_1_1;
|
$this->_http = HTTP_REQUEST_HTTP_VER_1_1;
|
||||||
$this->_requestHeaders = array();
|
$this->_requestHeaders = array();
|
||||||
|
@ -730,7 +730,7 @@ class HTTP_Request {
|
||||||
|
|
||||||
function setURL($url)
|
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)) {
|
if (!empty($this->_url->user) || !empty($this->_url->pass)) {
|
||||||
$this->setBasicAuth($this->_url->user, $this->_url->pass);
|
$this->setBasicAuth($this->_url->user, $this->_url->pass);
|
||||||
|
@ -889,7 +889,7 @@ class HTTP_Request {
|
||||||
|
|
||||||
$this->_notify('sentRequest');
|
$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);
|
$err = $this->_response->process($this->_saveBody && $saveBody);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -909,7 +909,7 @@ class HTTP_Request {
|
||||||
|
|
||||||
// Absolute URL
|
// Absolute URL
|
||||||
if (preg_match('/^https?:\/\//i', $redirect)) {
|
if (preg_match('/^https?:\/\//i', $redirect)) {
|
||||||
$this->_url = &new Net_URL($redirect);
|
$this->_url = new Net_URL($redirect);
|
||||||
$this->addHeader('Host', $this->_generateHostHeader());
|
$this->addHeader('Host', $this->_generateHostHeader());
|
||||||
// Absolute path
|
// Absolute path
|
||||||
} elseif ($redirect{0} == '/') {
|
} elseif ($redirect{0} == '/') {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue