From:             os at sumu dot org
Operating system: any
PHP version:      5.0.2
PHP Bug Type:     Feature/Change Request
Bug description:  RFE: Option to disable implicit conversion of integers to floats

Description:
------------
PHP implicitly converts integers to floats when they exceed MAX_LONG,
making implementing various algorithms in PHP quite difficult.  The change
in float-to-integer conversion in version 5.0.2 causes even more grief as
floats are now truncated.  An option for letting integers overflow instead
of converting them to floats would be great.  Or perhaps a set of functions
for doing integer-math.

Related bug reports: #18166, #30233, #30315, #30577, #30598.


-- 
Edit bug report at http://bugs.php.net/?id=30701&edit=1
-- 
Try a CVS snapshot (php4):   http://bugs.php.net/fix.php?id=30701&r=trysnapshot4
Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=30701&r=trysnapshot50
Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=30701&r=trysnapshot51
Fixed in CVS:                http://bugs.php.net/fix.php?id=30701&r=fixedcvs
Fixed in release:            http://bugs.php.net/fix.php?id=30701&r=alreadyfixed
Need backtrace:              http://bugs.php.net/fix.php?id=30701&r=needtrace
Need Reproduce Script:       http://bugs.php.net/fix.php?id=30701&r=needscript
Try newer version:           http://bugs.php.net/fix.php?id=30701&r=oldversion
Not developer issue:         http://bugs.php.net/fix.php?id=30701&r=support
Expected behavior:           http://bugs.php.net/fix.php?id=30701&r=notwrong
Not enough info:             http://bugs.php.net/fix.php?id=30701&r=notenoughinfo
Submitted twice:             http://bugs.php.net/fix.php?id=30701&r=submittedtwice
register_globals:            http://bugs.php.net/fix.php?id=30701&r=globals
PHP 3 support discontinued:  http://bugs.php.net/fix.php?id=30701&r=php3
Daylight Savings:            http://bugs.php.net/fix.php?id=30701&r=dst
IIS Stability:               http://bugs.php.net/fix.php?id=30701&r=isapi
Install GNU Sed:             http://bugs.php.net/fix.php?id=30701&r=gnused
Floating point limitations:  http://bugs.php.net/fix.php?id=30701&r=float
MySQL Configuration Error:   http://bugs.php.net/fix.php?id=30701&r=mysqlcfg

Reply via email to