What happened if i comments ini_set('default_mimetype', '')


#1

Because My host provider not allow to using ini_set(), some error will happened like below~

Warning: ini_set() has been disabled for security reasons in vendor/slim/slim/Slim/App.php on line 575

So… I’m comments vendor/slim/slim/Slim/App.php on line 575, and It’s turn to normal.

// stop PHP sending a Content-Type automatically
// ini_set('default_mimetype', '');

But, I don’t know have another error will happened after comments ini_set('default_mimetype', '');

Anyone can help me. XD

Thanks~


#2

I found information about that by looking at the commit where it was added:

https://github.com/slimphp/Slim/commit/f7fd190a051b42bb052fab0f7881aa173df83e70


#3

@tflight Thanks for help~