ErrorException [ Deprecated ]: Function mcrypt_get_iv_size() is deprecated

APPPATH/classes/CSRF.php [ 90 ]

85       }
86 
87       return $token;
88     }
89 
90     $iv_size = mcrypt_get_iv_size(MCRYPT_RIJNDAEL_256, MCRYPT_MODE_ECB);
91     $iv = mcrypt_create_iv($iv_size, MCRYPT_RAND);
92 
93     if ($encrypt) {
94       $token .= '||' . time();
95       return bin2hex(mcrypt_encrypt(MCRYPT_RIJNDAEL_256, self::_secret_key(), $token, MCRYPT_MODE_ECB, $iv));
  1. APPPATH/classes/CSRF.php [ 90 ] » Kohana_Core::error_handler(arguments)

  2. APPPATH/classes/CSRF.php [ 40 ] » CSRF::encrypt(arguments)

  3. APPPATH/classes/Form.php [ 38 ] » CSRF::token(arguments)

  4. APPPATH/views/frontend/index.php [ 36 ] » Form::open(arguments)

  5. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  6. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)

  7. SYSPATH/classes/Kohana/View.php [ 236 ] » Kohana_View->render()

  8. APPPATH/views/frontend/template.php [ 125 ] » Kohana_View->__toString()

  9. SYSPATH/classes/Kohana/View.php [ 62 ] » include(arguments)

  10. SYSPATH/classes/Kohana/View.php [ 359 ] » Kohana_View::capture(arguments)