CodeIgniter Forums
CI4 mbstring deprecated - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28)
+--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30)
+--- Thread: CI4 mbstring deprecated (/showthread.php?tid=92415)



CI4 mbstring deprecated - Epitto - 02-02-2025

Hi all!
The MBSTRING library is deprecated, but it is also one of the minimum requirements for installation.
How can I fix it?
How do you behave?


RE: CI4 mbstring deprecated - InsiteFX - 02-03-2025

What functions have been deprecated?

mbereg() and mberegi(): Replaced by mb_ereg() and mb_eregi() in PHP 7.0
mbsplit(): Replaced by mb_split()

QPrint, Base64, Uuencode, and HTML-ENTITIES: Deprecated for all MBString functions
mbstring.http_input, mbstring.http_output, mbstring.internal_encoding: Deprecated in favor of default_charset

How to fix deprecated function errors?

Suppress the warnings by adding a line to the php.ini file.
Upgrade your PHP to a higher version.


RE: CI4 mbstring deprecated - Epitto - 02-04-2025

(02-03-2025, 10:10 PM)InsiteFX Wrote: What functions have been deprecated?

mbereg() and mberegi(): Replaced by mb_ereg() and mb_eregi() in PHP 7.0
mbsplit(): Replaced by mb_split()

QPrint, Base64, Uuencode, and HTML-ENTITIES: Deprecated for all MBString functions
mbstring.http_input, mbstring.http_output, mbstring.internal_encoding: Deprecated in favor of default_charset

How to fix deprecated function errors?

Suppress the warnings by adding a line to the php.ini file.
Upgrade your PHP to a higher version.

The helpdesk of the hosting where I uploaded the application sent me: https://www.php.net/manual/it/mbstring.configuration.php

I am using version 8.x (2 >) of PHP.

If you tell me that there is nothing to worry about and that it is enough to just suppress the error messages, I will adapt.

Thanks.


RE: CI4 mbstring deprecated - InsiteFX - 02-04-2025

You should be fine, just don't use any of the deprecated mb_string methods.

If you have older libraries that use it and are showing deprecated then they will need to be upgrade to fix it.


RE: CI4 mbstring deprecated - Epitto - 02-04-2025

(02-04-2025, 03:57 AM)InsiteFX Wrote: You should be fine, just don't use any of the deprecated mb_string methods.

If you have older libraries that use it and are showing deprecated then they will need to be upgrade to fix it.

Thanks for the support!