(cherry picked from commit bc1c1be)
(cherry picked from commit 8fc9df3)
This was a buffer overflow in internal function get_icu_disp_value_src_php(). (cherry picked from commit 86ea921)
(cherry picked from commit a10e778)
… a member of a null object)
bug uncovered by LLVM/clang's new -fbounds-checking switch this patch fixes a crash in ext/standard/tests/math/round_large_exp.phpt
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.
(cherry picked from commit 29300b1)