From 99a60dec68b7d5aa665de83dc6041b03881142fe Mon Sep 17 00:00:00 2001 From: RobbBienert Date: Thu, 17 Oct 2013 00:37:56 +0200 Subject: [PATCH] removed references on new statements and method returns --- scripts/jlogHTTP_Request.php | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/scripts/jlogHTTP_Request.php b/scripts/jlogHTTP_Request.php index 35c2fb3..8f604cf 100644 --- a/scripts/jlogHTTP_Request.php +++ b/scripts/jlogHTTP_Request.php @@ -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} == '/') {