MFH: - Fixed bug #35243 (php_mblen() crashes when compiled with thread-safety on Linux)

This commit is contained in:
foobar 2005-11-20 18:07:28 +00:00
parent abe364335b
commit db77890bbd
2 changed files with 6 additions and 0 deletions

2
NEWS
View File

@ -4,6 +4,8 @@ PHP NEWS
- Fixed bug #35293 (PDO segfaults when using persistent connections). (Tony)
- Fixed bug #35278 (Multiple virtual() calls crash Apache 2 php module). (Ilia)
- Fixed bug #35273 (Error in mapping soap - java types). (Dmitry)
- Fixed bug #35243 (php_mblen() crashes when compiled with thread-safety
on Linux). (Patch: shulmanb at il dot ibm dot com, Jani)
- Fixed bug #33153 (crash in mssql_next result). (Frank)
- Fixed bug #33963 (mssql_bind() fails on input parameters). (Frank)
- Fixed bug #33201 (Crash when fetching some data types). (Frank)

View File

@ -953,6 +953,10 @@ static void basic_globals_ctor(php_basic_globals *basic_globals_p TSRMLS_DC)
memset(&BG(url_adapt_state), 0, sizeof(BG(url_adapt_state)));
memset(&BG(url_adapt_state_ex), 0, sizeof(BG(url_adapt_state_ex)));
#if defined(_REENTRANT) && defined(HAVE_MBRLEN) && defined(HAVE_MBSTATE_T)
memset(&BG(mblen_state), 0, sizeof(BG(mblen_state)));
#endif
BG(incomplete_class) = php_create_incomplete_class(TSRMLS_C);
}