Edit report at http://bugs.php.net/bug.php?id=53661&edit=1
ID: 53661 User updated by: scott at gifttree dot com Reported by: scott at gifttree dot com Summary: imagepstext fails for all values of AA steps not just non 4 or 16 Status: Open Type: Bug Package: GD related Operating System: Redhat Linux PHP Version: 5.3.4 Block user comment: N Private report: N New Comment: Snapshot php5.3-201101052330 appears to work correctly Previous Comments: ------------------------------------------------------------------------ [2011-01-06 00:38:47] scott at gifttree dot com 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 this bug report at http://bugs.php.net/bug.php?id=53661&edit=1