Description: Support php7-style constructors
 Constructors with the same name as the class are deprecated in php7.
 Update to the new style __construct() for compatibility.
Author: Steve Langasek <steve.langasek@ubuntu.com>
Index: php-net-imap-1.1.3/Net_IMAP-1.1.3/Net/IMAP.php
===================================================================
--- php-net-imap-1.1.3.orig/Net_IMAP-1.1.3/Net/IMAP.php
+++ php-net-imap-1.1.3/Net_IMAP-1.1.3/Net/IMAP.php
@@ -43,7 +43,7 @@
      * @param bool   $enableSTARTTLS Enable STARTTLS support
      * @param string $encoding       Character encoding
      */
-    function Net_IMAP($host = 'localhost',
+    function __construct($host = 'localhost',
                       $port = 143, 
                       $enableSTARTTLS = true,
                       $encoding = 'ISO-8859-1')
Index: php-net-imap-1.1.3/Net_IMAP-1.1.3/Net/IMAPProtocol.php
===================================================================
--- php-net-imap-1.1.3.orig/Net_IMAP-1.1.3/Net/IMAPProtocol.php
+++ php-net-imap-1.1.3/Net_IMAP-1.1.3/Net/IMAPProtocol.php
@@ -165,7 +165,7 @@
      *
      * @since  1.0
      */
-    function Net_IMAPProtocol()
+    function __construct()
     {
         $this->_socket = new Net_Socket();
 
