- Timestamp:
- 03/04/2024 03:52:04 PM (9 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/l10n/class-wp-translation-file-mo.php
r57513 r57763 67 67 } 68 68 69 if ( self::MAGIC_MARKER === $big ) { 69 // Force cast to an integer as it can be a float on x86 systems. See https://core.trac.wordpress.org/ticket/60678. 70 if ( (int) self::MAGIC_MARKER === $big ) { 70 71 return 'N'; 71 72 } 72 73 73 if ( self::MAGIC_MARKER === $little ) { 74 // Force cast to an integer as it can be a float on x86 systems. See https://core.trac.wordpress.org/ticket/60678. 75 if ( (int) self::MAGIC_MARKER === $little ) { 74 76 return 'V'; 75 77 } … … 204 206 $entry_offsets = $hash_addr; 205 207 206 $file_header = pack( $this->uint32 . '*', self::MAGIC_MARKER, 0 /* rev */, $entry_count, $originals_addr, $translations_addr, 0 /* hash_length */, $hash_addr ); 208 $file_header = pack( 209 $this->uint32 . '*', 210 // Force cast to an integer as it can be a float on x86 systems. See https://core.trac.wordpress.org/ticket/60678. 211 (int) self::MAGIC_MARKER, 212 0, /* rev */ 213 $entry_count, 214 $originals_addr, 215 $translations_addr, 216 0, /* hash_length */ 217 $hash_addr 218 ); 207 219 208 220 $o_entries = '';
Note: See TracChangeset
for help on using the changeset viewer.