title: Codeigniter - Function mcrypt_get_iv_size() is deprecated CI version 3.1.6
body: <p>controller</p>
  
  <pre><code>&lt;?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
  class Mbussinesstype extends MY_Model{
          private $data = null;
          public  $table_name = null;
          public  $primary_key = null;
          public  $sql = null;
  
          function __construct() {
            parent::__construct();
            $this-&gt;table_name   = 'bussinesstype';
            $this-&gt;primary_key  = 'id';
            $this-&gt;sql = "SELECT * FROM ".$this-&gt;table_name." WHERE 1=1  ";             
          }
  
          function SetDetails() {
              $this-&gt;data   = array(
                     'name_en'              =&gt; ucfirst(trim($this-&gt;input-&gt;post('name_en'))),
                     'name_np'              =&gt; trim($this-&gt;input-&gt;post('name_np')),         
                     'status'               =&gt; $this-&gt;input-&gt;post('status')                      
                  );
          }
  </code></pre>
  
  <p>I am newer in codeignater , this error happened to me when i change php version , previous version is lower then 7 and when now php version is 7.1.4 , before version chenge the code is running smothly bt now this error is shown below ..</p>
  
  <p>Severity: 8192</p>
  
  <p>Message: Function mcrypt_get_iv_size() is deprecated</p>
  
  <p>Filename: libraries/Encryption.php</p>
  
  <p>Line Number: 35</p>
  
  <p>Backtrace:</p>
  
  <p>File: E:\xampp\htdocs\dryice\application\libraries\Encryption.php
  Line: 35
  Function: _error_handler</p>
  
  <p>File: E:\xampp\htdocs\dryice\application\modules\bussinesstype\controllers\Admin.php
  Line: 35
  Function: decode</p>
  
  <p>File: E:\xampp\htdocs\dryice\application\modules\bussinesstype\controllers\Admin.php
  Line: 11
  Function: record</p>
  
  <p>File: E:\xampp\htdocs\dryice\index.php
  Line: 315
  Function: require_once</p>