Wednesday, February 23, 2022

[FIXED] Why mbstring extension is missing?

Issue

Im trying to increase max execution time of PHP script with line

ini_set('max_execution_time', 90000);

In "php.ini" file, but after I restart server I got error in PHPMyAdmin "mbstring extension is missing". If I comment line with "ini_set" PHPMyAdmin works fine.

So, why mbstring extension stop working?


Solution

php.ini is a configuration file, not a script, so you cannot run code from it. When you attempt to fill it with PHP source code you break the file so PHP starts with its compiled-in defaults, which do not include mbstring.

;;;;;;;;;;;;;;;;;;;
; Resource Limits ;
;;;;;;;;;;;;;;;;;;;

; Maximum execution time of each script, in seconds
; http://php.net/max-execution-time
; Note: This directive is hardcoded to 0 for the CLI SAPI
max_execution_time = 30


Answered By - Álvaro González

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.