From: vijay at mitoken dot com
Operating system: windows 2000 Professional
PHP version: 4.3.3
PHP Bug Type: *General Issues
Bug description: Not able to set the minimum value
Description:
------------
i am using jpgraphs to generate reports, and i use php to set the values.
i have some problems in setting minimum value. can anybody help me.
following is my code.
Reproduce code:
---------------
function getsumofmindata($datay)
{
for($i=0; $i<count($datay);$i++)
{
if($datay[$i] < $datay[$i+1] )
$datay[$i+1] = $datay[$i];
}
return $datay[count($datay)-1];
}
Expected result:
----------------
return value should get minimum value
Actual result:
--------------
giving some junk value
--
Edit bug report at http://bugs.php.net/?id=25656&edit=1
--
Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=25656&r=trysnapshot4
Try a CVS snapshot (php5): http://bugs.php.net/fix.php?id=25656&r=trysnapshot5
Fixed in CVS: http://bugs.php.net/fix.php?id=25656&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=25656&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=25656&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=25656&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=25656&r=support
Expected behavior: http://bugs.php.net/fix.php?id=25656&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=25656&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=25656&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=25656&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=25656&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=25656&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=25656&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=25656&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=25656&r=float