From: Operating system: Redhat Linux PHP version: 5.3.4 Package: GD related Bug Type: Bug Bug description:imagepstext fails for all values of AA steps not just non 4 or 16
Description: ------------ Reports Warning: imagepstext(): AA steps must be 4 or 16 even if 4 or 16 is specified Test script: --------------- $font_file = "font.pfm"; $im = imagecreatetruecolor(200, 200); $black = imagecolorallocate($im, 0, 0, 0); $white = imagecolorallocate($im, 255, 255, 255); $font = imagepsloadfont( $font_file ); $coords = imagepstext($im, 'Sample text is simple', $font, 12, $black, $white, 50, 50, 0, 0, 0.0, 4); print_r( $coords ); Expected result: ---------------- should return a array of 4 values Actual result: -------------- returns NULL and always generates Warning: imagepstext(): AA steps must be 4 or 16 even if AA steps parameter is defaulted or explicit 4 or 16 works correctly on 5.3.3 and 5.2.16 -- Edit bug report at http://bugs.php.net/bug.php?id=53661&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53661&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53661&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53661&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53661&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53661&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53661&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53661&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53661&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53661&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53661&r=support Expected behavior: http://bugs.php.net/fix.php?id=53661&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53661&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53661&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53661&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53661&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53661&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53661&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53661&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53661&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53661&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53661&r=mysqlcfg