By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,816 Members | 2,053 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,816 IT Pros & Developers. It's quick & easy.

handling 64 bit ints in php

P: n/a
Hello,
My platform is Solaris 2.11 on x86, amd64 actually.

I'm working with a product that requires 64-bit values be returned
as ints. Php 5.2.5 however returns this as a float. Is there some
option I can twiddle to change this?? Is it a matter of just casting?
It didn't seem to do the job. I can re-build source if necessary

I posted to php.dev as well, but it seems there is more spam than
information on that group.

Thanks.
S
Dec 28 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Sandman said:
Hello,
My platform is Solaris 2.11 on x86, amd64 actually.

I'm working with a product that requires 64-bit values be returned
as ints. Php 5.2.5 however returns this as a float. Is there some
option I can twiddle to change this?? Is it a matter of just casting?
It didn't seem to do the job. I can re-build source if necessary

I posted to php.dev as well, but it seems there is more spam than
information on that group.

Thanks.
S
Try the big_int package from pecl: http://pecl.php.net/package/big_int

It worked for me in a similar case.

All the best,
~A!

--
Anthony Levensalor
an*****@mypetprogrammer.com

Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former. - Albert Einstein
Dec 28 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.