Currently, I'm working with php 5.4, and would like to move to 5.6 and also PHP 7. I'm checking the code hosted on my server and realized that there is CodeIgniter code that might outdated.
@ini_get("safe_mode")
Because from what I have searched, safe_mode is no longer supported and deprecated.
I'm not sure about that CodeIgniter code. So wish to ask everyone to confirm whether it's outdated or not. If yes, what is the solution for this?
Example (part of the code):
/*
* ------------------------------------------------------
* Set a liberal script execution time limit
* ------------------------------------------------------
*/
if (function_exists("set_time_limit") == TRUE AND @ini_get("safe_mode") == 0)
{
@set_time_limit(300);
}
If you're using a recent version of CodeIgniter (3.1.x is current), then there should be no problems. The code you've shared there does look a bit ... legacy, this is likely to be an older version. I suggest you check the project documentation and check whether you can upgrade from your version to the newest which should then work with more recent versions of PHP.