Welcome Guest, Not a member yet? Register   Sign In
Deprecation Error with Wiredesign's HMVC extension on PHP 7.2
#4

(12-06-2017, 06:16 AM)InsiteFX Wrote: This is not TESTED!

But you can try it, if not it will be a start to fixing the depreciated each() function.

Change line 83 or 84 - in third_party/MX/Modules.php -

PHP Code:
(is_array($module)) ? list($module$params) = each($module) : $params NULL

Add this code and see if it will fix the problem for you.

PHP Code:
if (is_array($module))
{
 
   $temp $module;

 
   $module key($temp);
 
   $params current($temp);
 
   
    list
($module$params);
}
else
{
 
   $params NULL;


Remember this is not TESTED...

Thanks for your help and i appreciate it. However i tried it and it seems that the list function needs to be assigned to some variable.
i got this error by the way...
Code:
Type: ParseError

Message: syntax error, unexpected ';', expecting '='

Filename: /var/www/html/ci_hmvc/application/third_party/MX/Modules.php

Line Number: 91

Backtrace:

File: /var/www/html/ci_hmvc/application/core/MY_Router.php
Line: 4
Function: require

File: /var/www/html/ci_hmvc/index.php
Line: 315
Function: require_once
Reply


Messages In This Thread
RE: Deprecation Error with Wiredesign's HMVC extension on PHP 7.2 - by koficypher - 12-06-2017, 07:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB