> 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. > at helps in some way. >
Maybe I should rephrase the question. I have built apache, php and use the mysql 64 bit database from the mysql site with a number of applications for over a year. As far as I can tell everything is 64 bit clean and I need to find a test to make it fail. Or at least find some instanace that this is not a usable configuration. ---Bob -- This message posted from opensolaris.org _______________________________________________ webstack-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/webstack-discuss
