On Thu, 26 Nov 2015 at 17:25 Nikita Popov <nikita....@gmail.com> wrote:
> This will throw a fatal error if the number of > collisions during an insertion operation exceed a certain threshold. > To me this feels like it's just moving a DoS vector from one place to another. As Niklas already pointed out, he is directly affected by this. I was considering the scenario: 1) Open resources 2) json_decode 3) Do stuff 4) Clean up resources This makes the DoS more application specific, but there's any number of creative uses for making an application unexpectedly fail half way through. You can argue it's similar to any DoS that causes a request to run out of memory half way through, it is in some ways. I don't think an exception is right for this either. People blindly catch all exceptions because they can. Not sure what to suggest.