From:             ttalu at neti dot ee
Operating system: Unix
PHP version:      4.3.10
PHP Bug Type:     Math related
Bug description:  gmp_div_q calculate error

Description:
------------
gmp_div_q function do not give expected result

Reproduce code:
---------------
$c1=20;
$columns=3;
$iteration_count = gmp_div_q($c1,$columns, GMP_ROUND_PLUSINF);
echo $iteration_count;

Expected result:
----------------
7

Actual result:
--------------
Resource id #2

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

Reply via email to