Check ini_set - #2225
Conversation
If default_mimetype is already set to empty, ini_set is not executed.
|
This code change doesn't do anything.... if not empty default_mime-type set to empty. In your hosting environment you will have a default mime-type set. |
|
thank you for your reply, |
|
What's your use-case? |
|
Right, so the problem is that |
|
Yes |
|
I'm pretty torn on this.... while this feature might enable slim for you, it does impose a penalty on the rest of the community as if blocks do have a material cost. |
|
How about a compromise by using the @ symbol? @ini_set('default_mimetype', ''); |
|
The |
|
I did not know that. Saw it uses in other places for handle the same situation. Did some reading on it. Now I know. Thanks @akrabat |
|
@noogen a good rule of thumb is to never use @ ;) |
|
I don't think we should change this in Slim 3. |
If default_mimetype is already set to empty, ini_set is not executed.
Ini_set is not allowed on my shared server for security reasons.