• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CodeIgniter 3.x.x Branch starting to show Depreciation Warnings using PHP 7.x.x

#1
This is just a heads up.

CodeIgniter 3.1.8

.system/core/Security.php

LINE 633:

PHP Code:
// Unfortunately, none of the following PRNGs is guaranteed to exist ...
if (defined('MCRYPT_DEV_URANDOM') && ($output mcrypt_create_iv($lengthMCRYPT_DEV_URANDOM)) !== FALSE)
{
 
   return $output;


mcrypt_create_iv

PHP Code:
Warning

This 
function was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0.

Alternatives to this function include:

random_bytes() 

So it looks like the CodeIgniter 3 Branch is starting to show alot of depreciation warnings with PHP 7.x.x

There are a lot more, but just wanted to point this one out.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#2
(04-23-2018, 05:23 AM)InsiteFX Wrote: This is just a heads up.

CodeIgniter 3.1.8

.system/core/Security.php

LINE 633:

PHP Code:
// Unfortunately, none of the following PRNGs is guaranteed to exist ...
if (defined('MCRYPT_DEV_URANDOM') && ($output mcrypt_create_iv($lengthMCRYPT_DEV_URANDOM)) !== FALSE)
{
 
   return $output;


mcrypt_create_iv

PHP Code:
Warning

This 
function was DEPRECATED in PHP 7.1.0, and REMOVED in PHP 7.2.0.

Alternatives to this function include:

random_bytes() 

So it looks like the CodeIgniter 3 Branch is starting to show alot of depreciation warnings with PHP 7.x.x

There are a lot more, but just wanted to point this one out.

No. It will not show a deprecated warning....

See: https://github.com/bcit-ci/CodeIgniter/b...y.php#L615
Reply

#3
Maybe CI wont but the php editors are flagging it right off.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply

#4
(04-24-2018, 04:54 AM)InsiteFX Wrote: Maybe CI wont but the php editors are flagging it right off.

Well, most editors are stupid. Not CodeIgniter's problem.
Reply

#5
Hi Narf,

I know it is not a CodeIgniter problem I' am just mentioning it here in case other users come across the same issue.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.