Skip to content

Intermittent failures of gettext() with php-fpm #12624

Open
@editorassistant

Description

@editorassistant

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)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions