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

Issues when suhosin.memory_limit = 0 #12

Open
kinglozzer opened this issue Nov 7, 2017 · 0 comments
Open

Issues when suhosin.memory_limit = 0 #12

kinglozzer opened this issue Nov 7, 2017 · 0 comments

Comments

@kinglozzer
Copy link
Contributor

What happens in order is:

  • isSuhosinRelevant() calls getSuhosinMemoryDifference()
  • getSuhosinMemoryDifference() tries to work out the difference between suhosin’s memory limit and PHP’s memory limit. As suhosin’s limit is 0, this returns a negative value
  • As isSuhosinRelevant() therefore returns true, it tries to update the memory limit
  • ensureSuhosinMemory() tries to reserve the suhosin memory limit, -5mb - so it’s trying to set the memory limit to -5mb

Errors logged are script tried to disable memory_limit by setting it to a negative value

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant