Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: ini_set allowed shown as red #681

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter...
Filter file types
Jump to…
Jump to file or symbol
Failed to load files and symbols.

Always

Just for now

Fix: ini_set allowed shown as red

Try to set memory_limit with its same value, is a non invasive method to check if ini_set is possible. Dont see a reason to config a fully setup session.
  • Loading branch information...
Sioweb committed Feb 5, 2019
commit 27d36a3a544ea490fc512c98223a084c0a8094f9
@@ -741,7 +741,7 @@ public function checkGdInfo()
*/
public function checkIniSet()
{
return (@ini_set('session.name', 'sid') !== false) ? 2 : 0;
return (@ini_set('memory_limit', @ini_get('memory_limit')) !== false) ? 2 : 0;
}
/**
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.