Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#451 computeHashDirs value different in 32 bit v. 64 bit

closed-accepted
nobody
5
2009-02-14
2009-02-13
Mike Sweetser
No

Due to differences in the way PHP's crc32 command computes a value between 32 bit and 64 bit architectures, the return value for computeHashDirs will be different. If moving an existing Squirrelmail installation from 32 bit to 64 bit, this will cause existing users to lose their preferences, as the directory name Squirrelmail expects to find the preferences files under will be different between the two architectures.

The attached diff modifies the function to always generate a 32-bit value, thus making the values the same on both architectures. This has been tested on Squirrelmail 1.4.17.

Discussion

  • Mike Sweetser
    Mike Sweetser
    2009-02-13

    patch for computeHashDirs function in prefs.php

     
    Attachments
    • status: open --> closed-accepted
     
  • Committed to 1.4.18SVN and 1.5.2SVN. Thanks very much.