php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #53661 imagepstext fails for all values of AA steps not just non 4 or 16
Submitted: 2011-01-06 00:38 UTC Modified: 2011-01-10 19:15 UTC
From: scott at gifttree dot com Assigned: iliaa (profile)
Status: Closed Package: GD related
PHP Version: 5.3.4 OS: Redhat Linux
Private report: No CVE-ID: None
 [2011-01-06 00:38 UTC] 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2011-01-06 01:28 UTC] scott at gifttree dot com
Snapshot php5.3-201101052330 appears to work correctly
 [2011-01-10 19:15 UTC] iliaa@php.net
-Status: Open +Status: Closed -Assigned To: +Assigned To: iliaa
 [2011-01-10 19:15 UTC] iliaa@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat May 18 14:01:35 2024 UTC