Home » Images » Image_Graph » Bug #4417
Cannot use point ID as marker value
Details
| Submitted | 2005-05-24 12:05 UTC |
|---|---|
| From | ruipraxis at hotmail dot com |
| Assigned | nosey |
| Status | Closed |
| Package | Image_Graph |
| PHP Version | Irrelevant |
| OS | linux |
| Roadmaps | (Not assigned) |
Comments
[2005-05-24 12:05 UTC] ruipraxis at hotmail dot com
Description:
------------
In Image_Graph 0.3.0, if one tries to use IMAGE_GRAPH_POINT_ID as the type of value for an Image_Graph_Marker_Value, the following error occurs:
Notice: Undefined index: SUM_Y in .../pear/Image/Graph/Marker/Value.php on line 147
Warning: Division by zero in ...pear/Image/Graph/Marker/Value.php on line 147
Reproduce code:
---------------
I have identified the bug: in the file "Image/Graph/Constants.php", IMAGE_GRAPH_PCT_Y_TOTAL and IMAGE_GRAPH_POINT_ID are both defined as the value 6 (you can also see it in the docs). Replacing the value of one of them by e.g. 7 corrects it (which I did in my local version)
[2005-05-24 17:27 UTC] pear dot nosey at veggerby dot dk
This bug has been fixed in CVS.
In case this was a documentation problem, the fix will show up at the
end of next Sunday (CET) on pear.php.net.
In case this was a pear.php.net website problem, the change will show
up on the website in short time.
Thank you for the report, and for helping us make PEAR better.