[wp-trac] Re: [WordPress Trac] #3780: gettext fails to determine
byteorder on 64bit systems with php5.2.1
WordPress Trac
wp-trac at lists.automattic.com
Tue Sep 11 20:41:36 GMT 2007
#3780: gettext fails to determine byteorder on 64bit systems with php5.2.1
---------------------------------------------+------------------------------
Reporter: abtime | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.3
Component: i18n | Version: 2.2
Severity: critical | Resolution:
Keywords: i18n has-patch 2nd-opition test |
---------------------------------------------+------------------------------
Comment (by westi):
Replying to [comment:13 nbachiyski]:
> Do we really need the bitwise operators? All the numbers are 4-byte ints
anyway.
>
The problem is that on a 64bit platform with a PHP compiled for 64bit (not
a 32bit PHP running on a 64bit platform) the php int is 8 bytes instead on
4 bytes.
The bitwise operators are there to mask off the top of the 8-byte int on
64bit platforms.
> I have tested the patch gettext-64-without-bitwise-ops.diff and it works
on:
> * Linux x86_64, PHP 5.2.3
> * Linux i686, PHP 5.2.3
> * Linux i686, PHP 4.3.10
> * FreeBSD i386, PHP 4.4.0
what it the value of {{{PHP_INT_SIZE}}} on the x86_64 PHP install - I
expect it is 4 which why all your tests worked.
--
Ticket URL: <http://trac.wordpress.org/ticket/3780#comment:15>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list