Make WordPress Core


Ignore:
Timestamp:
02/23/2007 12:31:09 AM (17 years ago)
Author:
ryan
Message:

gettext byteorder fix for 64 bit archs. fixes #3780

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-includes/gettext.php

    r4736 r4917  
    109109    // $MAGIC2 = (int)0xde120495; //bug
    110110    $MAGIC2 = (int) - 569244523;
     111    // 64-bit fix
     112    $MAGIC3 = (int) 2500072158;
    111113
    112114    $this->STREAM = $Reader;
    113115    $magic = $this->readint();
    114     if ($magic == ($MAGIC1 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms
     116    if ($magic == ($MAGIC1 & 0xFFFFFFFF) || $magic == ($MAGIC3 & 0xFFFFFFFF)) { // to make sure it works for 64-bit platforms
    115117      $this->BYTEORDER = 0;
    116118    } elseif ($magic == ($MAGIC2 & 0xFFFFFFFF)) {
Note: See TracChangeset for help on using the changeset viewer.