lbayuk - 2009-07-06

First, the good news: PHPlot-5.0.7 passes all my tests using the recently released PHP-5.3.0, including producing no warnings with E_STRICT and E_DEPRECATED error_reporting. The tests also pass with PHP-5.2.10. (PHPlot-5.0.7 was released a few days before PHP-5.2.10.)

If you are moving to PHP-5.3.0, be sure to read "Migrating from PHP 5.2.x to 5.3.x" on www.php.net or in the manual. There are incompatibilities, and some will probably affect you. (For example, although PHPlot had no problems, my test driver got warnings due to my least favorite 'improvement' in PHP-5.3.0: deprecating the ereg() functions.)

Now the less good news. Both PHP-5.2.10 and PHP-5.3.0 are affected by PHP bug 48732 (see http://bugs.php.net/bug.php?id=48732) "TTF Bounding box wrong for letters below baseline". This makes PHPlot graphs look different under PHP-5.3.0 and 5.2.10 if they use TrueType fonts, compared to PHP-5.2.9 and older. The text bounding boxes no longer include descenders, which makes the text more crowded and the margins smaller. In my test cases, the results aren't bad, though.