Browse Source

Changed many "Call-time pass-by-reference" errors. Things should be passed
correctly.

Tyler Akins 24 years ago
parent
commit
d5750c6aca
3 changed files with 5 additions and 5 deletions
  1. 1 1
      functions/imap_general.php
  2. 2 2
      functions/imap_messages.php
  3. 2 2
      functions/mime.php

+ 1 - 1
functions/imap_general.php

@@ -98,7 +98,7 @@
       global $color, $squirrelmail_language, $HTTP_ACCEPT_LANGUAGE, $onetimepad;
 
       $imap_stream = fsockopen ($imap_server_address, $imap_port,
-         &$error_number, &$error_string, 15);
+         $error_number, $error_string, 15);
       $server_info = fgets ($imap_stream, 1024);
       
       // Decrypt the password

+ 2 - 2
functions/imap_messages.php

@@ -157,7 +157,7 @@
     ******************************************************************************/
    function sqimap_get_message ($imap_stream, $id, $mailbox) {
       $header = sqimap_get_message_header($imap_stream, $id, $mailbox);
-      return sqimap_get_message_body($imap_stream, &$header);
+      return sqimap_get_message_body($imap_stream, $header);
    }
 
    /******************************************************************************
@@ -376,7 +376,7 @@
     ******************************************************************************/
    function sqimap_get_message_body ($imap_stream, &$header) {
       $id = $header->id;
-      return decodeMime($imap_stream, &$header);
+      return decodeMime($imap_stream, $header);
    }
 
 

+ 2 - 2
functions/mime.php

@@ -119,7 +119,7 @@
       } else {
          // parse the elements
          if ($debug_mime) echo "<br><font color=0000aa><tt>$structure</tt></font><br>";
-         $msg = mime_get_element (&$structure, $msg, $ent_id);
+         $msg = mime_get_element ($structure, $msg, $ent_id);
          if ($debug_mime) echo "<br>";
       }
       return $msg;
@@ -435,7 +435,7 @@
    /** This is the first function called.  It decides if this is a multipart
        message or if it should be handled as a single entity
     **/
-   function decodeMime ($imap_stream, $header) {
+   function decodeMime ($imap_stream, &$header) {
       global $username, $key, $imapServerAddress, $imapPort;
       return mime_structure ($imap_stream, $header);
    }