Update to current production version of chart.php, which should work
under PHP5.