Welcome Guest, Not a member yet? Register   Sign In
_shutdown_handler() getting called
#2

(This post was last modified: 11-18-2017, 12:42 PM by richb201.)

I did some more research and found this post:

https://forum.codeigniter.com/archive/in...937-2.html

I am starting to think that it is an error that is causing this. I figure I have two choices; either to downgrade to php 5.4 from php 5.6.28 OR change the error_reporting level. This second choice seems a little scary to me. I hope to eventually host this thing on Goggle cloud. Do they support older versions of PHP? If not, perhaps I am better modifying the error_reporting level. Where is the proper place in CI to do that mod? Or are their any instructs on downgrading to php 5.4?

additional information:
$severity=8192
$message= ini_set(): Use of mbstring.internal_encoding is deprecated
$filepath=C:\xampp\htdocs\sub_crud\system\core\CodeIgniter.php
line 252

And here is the code from codeigniter.php that is causing it:

ini_set('default_charset', $charset);

if (extension_loaded('mbstring'))
{
  define('MB_ENABLED', TRUE);
  // mbstring.internal_encoding is deprecated starting with PHP 5.6
  // and it's usage triggers E_DEPRECATED messages.
  @ini_set('mbstring.internal_encoding', $charset);
  // This is required for mb_convert_encoding() to strip invalid characters.
  // That's utilized by CI_Utf8, but it's also done for consistency with iconv.
  mb_substitute_character('none');


I am not sure how I should handle this. I have no idea what mbstring.internal encoding is. Perhaops the Codexworlds login system wasn't meant to be used with php 5.6? There is a comment directly above the problem in codeigniter.php but I don't understand it:

*
* ------------------------------------------------------
* Important charset-related stuff
* ------------------------------------------------------
*
* Configure mbstring and/or iconv if they are enabled
* and set MB_ENABLED and ICONV_ENABLED constants, so
* that we don't repeatedly do extension_loaded() or
* function_exists() calls.
*
* Note: UTF-8 class depends on this. It used to be done
* in it's constructor, but it's _not_ class-specific.
*
*/
proof that an old dog can learn new tricks
Reply


Messages In This Thread
_shutdown_handler() getting called - by richb201 - 11-18-2017, 06:34 AM
RE: _shutdown_handler() getting called - by richb201 - 11-18-2017, 08:40 AM



Theme © iAndrew 2016 - Forum software by © MyBB