Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.0.0
-
Fix Version/s: 1.0.1
-
Component/s: Zend_Translate
-
Labels:None
Description
When i use the Gettext Adapter on a 64bit machine with PHP 5.2.0 i get an error on importing the mo file...
After some research on the net ive found out, that it could be a bug in PHP itself and ive found a fix which looks something like this:
Gettext.php
// get Endian $input = $this->_readMOData(1); if (($input[1] == 2500072158) or ($input[1] == 18446744071914656478)) { $this->_bigEndian = false; } else if ($input[1] == 3725722773) { $this->_bigEndian = true; } else { throw new Zend_Translate_Exception('\'' . $filename . '\' is not a gettext file'); }
this bug was already reported and fixed in 1.0.0 RC3 but looks like it has found its way back to final version.
Just because a fix for a bug of PHP itself works for one particular server does not automatically mean that it works for another.
As you stated the problem is through PHP itself which does not act as described within the documentation.
If the fix from 1428 would not have worked Julien would have mentioned this. So I am absolutly sure the problem is related to your installation and not all 64bit machines in sum.
Please give us:
PHP Version, OS, Processor, SVN Number of ZF
and the output of $input before the check.