smarty icon indicating copy to clipboard operation
smarty copied to clipboard

INI directive 'mbstring.func_overload' is deprecated since PHP 7.2

Open oasfuyou opened this issue 7 years ago • 2 comments

INI directive 'mbstring.func_overload' is deprecated since PHP 7.2,pelase add a new release

oasfuyou avatar Aug 24 '18 05:08 oasfuyou

I'd like to raise a question against calling mb_internal_encoding() in constructor at all to begin with.

In all cases of using mb_** functions I've found they are used with explicit specification of Smarty::$_CHARSET, and I can see clear disadvantage of such hidden behavior change for an entire application.

AnrDaemon avatar May 04 '20 23:05 AnrDaemon

Came here to report the same thing:

FILE: /smarty/sysplugins/smarty_internal_smartytemplatecompiler.php
------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------
 111 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------


FILE: /smarty/sysplugins/smarty_internal_config_file_compiler.php
------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------
 134 | WARNING | INI directive 'mbstring.func_overload' is deprecated since PHP 7.2
------------------------------------------------------------------------------------

As reported by PHP CodeSniffer

RobThree avatar Dec 02 '21 10:12 RobThree