Diff of /branches/phpGedView-ca/modules/FamilySearch/PHP-FamilySearchAPI/FSAPI/HTTP/Request.php [r6960] .. [r6961] Maximize Restore

  Switch to side-by-side view

--- a/branches/phpGedView-ca/modules/FamilySearch/PHP-FamilySearchAPI/FSAPI/HTTP/Request.php
+++ b/branches/phpGedView-ca/modules/FamilySearch/PHP-FamilySearchAPI/FSAPI/HTTP/Request.php
@@ -93,7 +93,7 @@
  *
  * Simple example (fetches yahoo.com and displays it):
  * <code>
- * $a = &new HTTP_Request('http://www.yahoo.com/');
+ * $a = new HTTP_Request('http://www.yahoo.com/');
  * $a->sendRequest();
  * echo $a->getResponseBody();
  * </code>
@@ -385,7 +385,7 @@
     */
     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);
@@ -703,7 +703,7 @@
             $err = null;
         } else {
             $this->_notify('connect');
-            $this->_sock =& new Net_Socket();
+            $this->_sock = new Net_Socket();
             $err = $this->_sock->connect($host, $port, null, $this->_timeout, $this->_socketOptions);
         }
         PEAR::isError($err) or $err = $this->_sock->write($this->_buildRequest());
@@ -716,7 +716,7 @@
             $this->_notify('sentRequest');
 
             // Read the response
-            $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,
                 HTTP_REQUEST_METHOD_HEAD != $this->_method
@@ -761,7 +761,7 @@
 
             // 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} == '/') {