handling 64 bit ints in php

This is a discussion on handling 64 bit ints in php within the PHP Language forums, part of the PHP Programming Forums category; Hello, My platform is Solaris 2.11 on x86, amd64 actually. I'm working with a product that requires 64-...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-28-2007
Sandman
 
Posts: n/a
Default handling 64 bit ints in php

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
Reply With Quote
  #2 (permalink)  
Old 12-28-2007
My Pet Programmer
 
Posts: n/a
Default Re: handling 64 bit ints in php

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
anthony@mypetprogrammer.com

Only two things are infinite, the universe and human stupidity,
and I'm not sure about the former. - Albert Einstein
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:09 AM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0