[php-src] Issue #12624: Intermittent failures of gettext() with php-fpm
| From: | editorassistant | Date: | Tue, 07 Nov 2023 04:32:54 +0000 |
| Subject: | [php-src] Issue #12624: Intermittent failures of gettext() with php-fpm | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-245756@lists.php.net to get a copy of this message | ||
Issue: https://github.com/php/php-src/issues/12624
Author: editorassistant
### Description
The following code:
```php
<?php
echo setlocale(LC_MESSAGES, 'de_DE.UTF-8');
p(bindtextdomain('edas', '/mnt/edas/html/locale'));
p(_("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)