Edit report at http://bugs.php.net/bug.php?id=53661&edit=1

 ID:                 53661
 Updated by:         il...@php.net
 Reported by:        scott at gifttree dot com
 Summary:            imagepstext fails for all values of AA steps not
                     just non 4 or 16
-Status:             Open
+Status:             Closed
 Type:               Bug
 Package:            GD related
 Operating System:   Redhat Linux
 PHP Version:        5.3.4
-Assigned To:        
+Assigned To:        iliaa
 Block user comment: N
 Private report:     N

 New Comment:

This bug has been fixed in SVN.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.




Previous Comments:
------------------------------------------------------------------------
[2011-01-06 01:28:55] scott at gifttree dot com

Snapshot php5.3-201101052330 appears to work correctly

------------------------------------------------------------------------
[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

Reply via email to