CodeIgniter Forums
CodeIgniter 3.x.x Branch starting to show Depreciation Warnings using PHP 7.x.x - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Development (https://forum.codeigniter.com/forumdisplay.php?fid=6)
+--- Forum: CodeIgniter 3.x (https://forum.codeigniter.com/forumdisplay.php?fid=17)
+--- Thread: CodeIgniter 3.x.x Branch starting to show Depreciation Warnings using PHP 7.x.x (/showthread.php?tid=70530)



CodeIgniter 3.x.x Branch starting to show Depreciation Warnings using PHP 7.x.x - InsiteFX - 04-23-2018

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.


RE: CodeIgniter 3.x.x Branch starting to show Depreciation Warnings using PHP 7.x.x - Paradinight - 04-23-2018

(04-23-2018, 04: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/blob/3.1.8/system/core/Security.php#L615


RE: CodeIgniter 3.x.x Branch starting to show Depreciation Warnings using PHP 7.x.x - InsiteFX - 04-24-2018

Maybe CI wont but the php editors are flagging it right off.


RE: CodeIgniter 3.x.x Branch starting to show Depreciation Warnings using PHP 7.x.x - Narf - 04-24-2018

(04-24-2018, 03: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.


RE: CodeIgniter 3.x.x Branch starting to show Depreciation Warnings using PHP 7.x.x - InsiteFX - 04-24-2018

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.