Open
Description
Description
The following code:
<?php
echo setlocale(LC_MESSAGES, 'de_DE.UTF-8');
bindtextdomain('edas', '/mnt/edas/html/locale');
echo _("Good morning");
The page will sometimes generate the correct result, sometimes just produce the key - without any code or .mo changes. Restarting php-fpm or apache (or rebooting) does not help. The Linux function gettext shows the correct result.
PHP Version
PHP 8.2.9
Operating System
AWS Linux 2 (Centos)