Make WordPress Core

Ticket #3780: 3780.diff

File 3780.diff, 761 bytes (added by rob1n, 18 years ago)
  • wp-includes/gettext.php

     
    108108    $MAGIC1 = (int) - 1794895138;
    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)) {
    117119      $this->BYTEORDER = 1;