(cherry picked from commit 8fc9df3)
… a member of a null object)
This fixes a general issue. In this ticket and not for the first time is being seen, that people are trying to use data from "examples" in the tests. When extracting a test pack only "tests" and its siblings was taken into account. Now "examples" are copied as well.
Exception text differ on windows
What happens here is trivial long overflow. Despite the bug attracted attention on windows, the same story is on linux. Just wait for a big anough bucket->key . The linux test had %i to check the key value which should be %d all the way.
Another error message is produced by win specific code
Fixed that again for systems having their %SYSTEMROOT% not in c:\windows
There is a logic error in charset detection part for htmlentities. When mbstring is compiled shared and mbstring.internal_encoding is set to pass, it prevents default_charset from being checked resulting iso-8859-1 being choosed.