WordPress/wp-includes/l10n
Pascal Birchler ce1eb78275 I18N: Cast magic MO marker number to integer.
In gettext, `0x950412de` is used to signal GNU MO files. In `WP_Translation_File_MO` this magic marker is used to detect whether a file uses little endian or big endian.

On 32 bit systems, this number will be interpreted by PHP as a float rather than an integer. This change adds extra casting to force an integer.

A similar change was done in the pomo library in the past, see #3780.

Props tmatsuur, swissspidy.
Fixes #60678.
Built from https://develop.svn.wordpress.org/trunk@57763


git-svn-id: http://core.svn.wordpress.org/trunk@57264 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2024-03-04 15:54:10 +00:00
..
class-wp-translation-controller.php I18N: Rename WP_Translation_Controller::instance() method to get_instance(). 2024-01-25 07:53:17 +00:00
class-wp-translation-file-mo.php I18N: Cast magic MO marker number to integer. 2024-03-04 15:54:10 +00:00
class-wp-translation-file-php.php I18N: Improve singular lookup of pluralized strings. 2024-02-01 11:45:16 +00:00
class-wp-translation-file.php I18N: Add type declaration to new method missed in [57518]. 2024-02-02 09:07:14 +00:00
class-wp-translations.php I18N: Improve singular lookup of pluralized strings. 2024-02-01 11:45:16 +00:00