]> projects.mako.cc - scuttle/commitdiff
removed code for string overloading
authorBenjamin Mako Hill <mako@atdot.cc>
Fri, 21 Jun 2024 09:23:37 +0000 (19:23 +1000)
committerBenjamin Mako Hill <mako@atdot.cc>
Fri, 21 Jun 2024 09:23:37 +0000 (19:23 +1000)
This does not seem to work on a modern version of PHP (e.g., 8.2) and
simply removing this caused it work on my system again.

includes/utf8/utf8.php

index 4be7ef94f9dcff9efc9f43039aea659792dc8026..45cd84d41bb076d47f3fe55e339d07942d8dd3c8 100644 (file)
@@ -27,20 +27,6 @@ if ( !defined('UTF8') ) {
     define('UTF8',dirname(__FILE__));
 }
 
-/**
-* If string overloading is active, it will break many of the
-* native implementations. mbstring.func_overload must be set
-* to 0, 1 or 4 in php.ini (string overloading disabled).
-* Also need to check we have the correct internal mbstring
-* encoding
-*/
-if ( extension_loaded('mbstring')) {
-    if ( ini_get('mbstring.func_overload') & MB_OVERLOAD_STRING ) {
-        trigger_error('String functions are overloaded by mbstring',E_USER_ERROR);
-    }
-    mb_internal_encoding('UTF-8');
-}
-
 /**
 * Check whether PCRE has been compiled with UTF-8 support
 */

Benjamin Mako Hill || Want to submit a patch?