On Wed, 2010-05-26 at 16:39 -0700, Bob Palowoda wrote:
> What are the advantages or disadvantages of using 64bit php vs 32?

Interesting question.

The obvious thing is that if you're running PHP on a 32 or 64 bit server
as module (for whatever reason) PHP has to match. If you intend to use a
module linking against a library only available with 32 or 64 bit PHP
obviously has to match.

That aside a few things which came to my mind, probably not complete,
though:

      * On 64bit internal data structures are larger, for instance PHP's
        "zval" type which represents a PHP variable is 16 bytes on 32bit
        and 24 bytes on 64bit so every variable in the script is a bit
        bigger which can sum up to notable effects
      * The max integer value a PHP script can use depends on C's long
        type, so arithmetics with larger numbers require 64 bit. A 32
        bit machine will cast do double values or have an integer
        overflow (depending on the operation in the PHP script) sooner.
      * PHP on 32 bit can only access files up to 2GB. This limitation
        doesn't exist with 64 bit.

hope that helps in some way.

johannes
-- 
Johannes Schlüter - MySQL Engineering Connectors and Client Connectivity

Sun Microsystems GmbH, Sonnenallee 1, 85551 Kirchheim-Heimstetten
Amtsgericht München: HRB161028
Geschäftsführer: Jürgen Kunz

_______________________________________________


webstack-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/webstack-discuss

Reply via email to