Re: [PHP-DEV] Bug #12505: array_sum function total calculate error

2001-08-01 Thread Joey Smith

Confirmed with CVS a/o July 20th.

On Wed, 1 Aug 2001, Heikki Korpela wrote the following to [EMAIL PROTECTED]:

> On 1 Aug 2001 [EMAIL PROTECTED] wrote:
> 
> > From: [EMAIL PROTECTED]
> > Operating system: Red Hat Linux 7.1
> > PHP version:  4.0.4pl1
> > PHP Bug Type: Arrays related
> > Bug description:  array_sum function total calculate error
> > $tt=array(382478633,367687181,452504275,471367521,848270658,1181944543);
> > $total_tt=array_sum($tt);
> > echo "Total_tt=".$total_tt;
> > // Prints  Total_tt=-590714485
> > Must be 3704252811.
> 
> Confirmed on:
> 
>   i386 / OpenBSD-current / PHP 4.0.6 (from OpenBSD ports tree)
>   i386 / RH 7.1 / PHP 4.0.5  (from RH Rawhide)
>   i386 / RH 7.0 / PHP 4.0.5  (from Arvin's 4.0.5 RPMS)
> 
> 


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




Re: [PHP-DEV] Bug #12505: array_sum function total calculate error

2001-08-01 Thread Heikki Korpela

On 1 Aug 2001 [EMAIL PROTECTED] wrote:

> From: [EMAIL PROTECTED]
> Operating system: Red Hat Linux 7.1
> PHP version:  4.0.4pl1
> PHP Bug Type: Arrays related
> Bug description:  array_sum function total calculate error
> $tt=array(382478633,367687181,452504275,471367521,848270658,1181944543);
> $total_tt=array_sum($tt);
> echo "Total_tt=".$total_tt;
> // Prints  Total_tt=-590714485
> Must be 3704252811.

Confirmed on:

i386 / OpenBSD-current / PHP 4.0.6 (from OpenBSD ports tree)
i386 / RH 7.1 / PHP 4.0.5  (from RH Rawhide)
i386 / RH 7.0 / PHP 4.0.5  (from Arvin's 4.0.5 RPMS)

-- 
<-->
  Heikki Korpela -- [EMAIL PROTECTED] -- http://iki.fi/heko/


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP-DEV] Bug #12505: array_sum function total calculate error

2001-08-01 Thread omeroz

From: [EMAIL PROTECTED]
Operating system: Red Hat Linux 7.1
PHP version:  4.0.4pl1
PHP Bug Type: Arrays related
Bug description:  array_sum function total calculate error

$tt=array(382478633,367687181,452504275,471367521,848270658,1181944543);
$total_tt=array_sum($tt);
echo "Total_tt=".$total_tt;

// Prints  Total_tt=-590714485

Must be 3704252811.



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


-- 
PHP Development Mailing List 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]