From: aweeks at lssu dot edu Operating system: Fedora Core 4 64-bit PHP version: 5.0.5 PHP Bug Type: *Graphics related Bug description: X co-ordinate value always seems to be 0 in imagettftext()
Description: ------------ In previous versions of PHP (4.X) the imagettftext() function works appropriately with coordinates. A php 5.0.5 install with the same configuration options seems to make the X coordinate (4th parameter of the function) always 0. We have tried several ways to get around it, but the value of x never seems to change: 0. Reproduce code: --------------- The code is a standard call to imagettftext. We have several code snippets, all of which place the text at x=0: imagettftext($im, 13, 0, 35, 20, $black, "/home/protected/fonts/$font", $text); Expected result: ---------------- We expect to see the font text placed 35 pixels in from the left. Actual result: -------------- Instead of being 35 pixels in from the left edge of the image, it is flush against the left side of the image. We have tried this with several image programs, and with various values in place of the x parameter. -- Edit bug report at http://bugs.php.net/?id=34951&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=34951&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=34951&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=34951&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=34951&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=34951&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=34951&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=34951&r=needscript Try newer version: http://bugs.php.net/fix.php?id=34951&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=34951&r=support Expected behavior: http://bugs.php.net/fix.php?id=34951&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=34951&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=34951&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=34951&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=34951&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=34951&r=dst IIS Stability: http://bugs.php.net/fix.php?id=34951&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=34951&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=34951&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=34951&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=34951&r=mysqlcfg