Tracker: Patches

5 computeHashDirs value different in 32 bit v. 64 bit - ID: 2596879
Last Update: Comment added ( pdontthink )

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.


Mike Sweetser ( adhostmikesw ) - 2009-02-13 18:54

5

Closed

Accepted

Nobody/Anonymous

User Interface

None

Public


Comment ( 1 )

Date: 2009-02-14 07:29
Sender: pdontthinkProject AdminAccepting Donations

Committed to 1.4.18SVN and 1.5.2SVN. Thanks very much.


Attached File ( 1 )

Filename Description Download
prefs.php.diff patch for computeHashDirs function in prefs.php Download

Changes ( 5 )

Field Old Value Date By
status_id Open 2009-02-14 07:29 pdontthink
resolution_id None 2009-02-14 07:29 pdontthink
allow_comments 1 2009-02-14 07:29 pdontthink
close_date - 2009-02-14 07:29 pdontthink
File Added 313429: prefs.php.diff 2009-02-13 18:54 adhostmikesw