Fix memory_limit comparison

intval returns an int, so constant must be an int as well.
Merge pull request #2 from mattflaschen/fixMemoryLimitComparison

Fix memory_limit comparison