Fix memory_limit comparison

intval returns an int, so constant must be an int as well.