Commits
Pavels Jelisejevs authored 7785cac7d0aM
..F....... [ZBX-3855] fixed bug that prevented the frontend from working with the Turkish locale Before the fix: - Due to a PHP bug #18556 (https://bugs.php.net/bug.php?id=18556) the frontend crashed when the locale was set to Turkish. In short, when PHP calls a function, it converts the name of the function to lower case. The function that performs the conversion depends on the LC_CTYPE locale. In Turkish letters "I" and "i" are different, so converting, for example, "getInstance()" to lower case yields an incorrect result and triggers an undefined function error. The bug has been fixed in PHP 5.5 After the fix: - As a workaround the LC_CTYPE locale is always set to C or English before running any PHP script and after setting the user locale.
Showing diff to1c328b66bf5