Edit report at http://bugs.php.net/bug.php?id=51274&edit=1

 ID:               51274
 User updated by:  cduncan at regatta dot com
 Reported by:      cduncan at regatta dot com
 Summary:          Integer overflow does not cast as float
 Status:           Open
 Type:             Bug
 Package:          *General Issues
 Operating System: Linux
 PHP Version:      5.3.2

 New Comment:

I am now able to reproduce the problem, what extra information do you
require to debug?


Previous Comments:
------------------------------------------------------------------------
[2010-03-26 10:17:04] cduncan at regatta dot com

Thanks, I was worried I was going mad for a moment there.



Unfortunately I can't reproduce it on the machines I'm using at the
moment. The machine I was experiencing it on was a production box, so
finding time to reproduce it again could be tricky.



Once I am able to do so, what extra information would assist in tracking
this down?



Thanks

------------------------------------------------------------------------
[2010-03-26 09:24:56] ahar...@php.net

Oh, I see what you're getting at now. Sorry about that.



I still can't reproduce it, though.

------------------------------------------------------------------------
[2010-03-26 09:16:37] cduncan at regatta dot com

Sorry but I'm misunderstanding what you are telling me. Why is the
number reduced to the 32bit limit? (2147483647)



Especially if you're saying the only way this could occur is with a
64bit OS?



As I stated in my last edit, wouldn't a 64bit OS return:

int(2147483648)

------------------------------------------------------------------------
[2010-03-26 07:50:20] ahar...@php.net

Automatic comment from SVN on behalf of aharvey
Revision: http://svn.php.net/viewvc/?view=revision&revision=296829
Log: Update to the integer type page to make it clearer how overflow
works on 32-
and 64-bit systems and what the critical thresholds are. Prompted by
bug #51274, although not an actual fix for it.

------------------------------------------------------------------------
[2010-03-26 06:33:35] ahar...@php.net

I can't really see any way this could occur other than your server

having a 64-bit install of Linux on it. What distribution is the

server running, what does "uname -m" output, and what does configure

say the host and target system types are?



(Side note: the manual could admittedly be a bit clearer on this;

although the fact integer size differs on different platforms is

mentioned, it might be useful if the Integer Overflow section

actually reiterated it. I'll see about updating it.)

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=51274


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51274&edit=1

Reply via email to