ID: 35255 Updated by: [EMAIL PROTECTED] Reported By: phpbugs at exozet dot com Status: Feedback Bug Type: GD related Operating System: OpenSuSE 10.0 x86_64 PHP Version: 4.4.1 Assigned To: pajoye New Comment:
I can see the very same result on x86 host. Doesn't look like a bug to me (yes, it's perfectly fine to have negative coordinates). Previous Comments: ------------------------------------------------------------------------ [2005-11-17 12:29:35] [EMAIL PROTECTED] Please provide the font you use. I fail to see the relation between t1lib and the ttf functions. 4.3.x is a dead branche. 4.4.x is the active php4 branche. ------------------------------------------------------------------------ [2005-11-17 11:32:39] phpbugs at exozet dot com configure and make w/o t1lib successful. But the result of testpic.php is nearly the same as in 4.4.1! Get a look: http://www.exozet.com/phpbug-1/64bit/php5-200511170730/ ------------------------------------------------------------------------ [2005-11-17 10:10:47] phpbugs at exozet dot com Sorry, but PHP 5 didn't helps us. I compiled PHP in 32bit mode but the same results. So please give us a hint to fix that problem in our configuration. In the moment I compile your PHP5-lastest. First the t1lib is outdatet and I compile my own. Now, configure is done, and make is in progress... btw. you find the loggings of the configure's and make's in the directorys under the URL I provided. Can't make it! Errors with T1_StrError. I try w/o t1lib. You can find the make-failed_t1.log here: http://www.exozet.com/phpbug-1/64bit/php5-200511170730/make-failed_t1.log ------------------------------------------------------------------------ [2005-11-17 09:38:34] [EMAIL PROTECTED] Please try using this CVS snapshot: http://snaps.php.net/php5-latest.tar.gz For Windows: http://snaps.php.net/win32/php5-win32-latest.zip We only start supporting 64bit support in 5.1 and above. ------------------------------------------------------------------------ [2005-11-17 09:34:05] phpbugs at exozet dot com Description: ------------ imagettftext() ignores x coordiantes in this PHP 4.3.11 (#34951). The same code works properly in the SAME version but compiled on the same machine with SuSE/Linux 9.2 x64_64. On a 32bit Machine with OpenSuSE 10.0 and the same configure and so on it works. In addition I tested PHP 4.4.1 and the stable snapshot php4-STABLE-200511161138. The result are totaly out of range and not the same as in 4.3.11. I put the results, the "make test" output, the rpm list and the source code under http://www.exozet.com/phpbug-1/ So I need a patch / workaround for PHP 4.3.11 and PHP 4.4.1 (yes, yes, PHP 4.3.11, but many applications didn't work under 4.4.1 so we need the 4.3.11!) Thanks a lot... Reproduce code: --------------- <?php $im = imagecreatetruecolor(400, 30); $grey = imagecolorallocate($im, 128, 128, 128); $text = 'Testing...'; $font = 'arial.ttf'; echo "imagettftext:\n"; print_r ( imagettftext ( $im, 20, 0, 110, 21, $grey, $font, $text ) ); echo "imagettfbbox:\n"; print_r ( imagettfbbox ( 20, 0, $font, $text ) ); echo "imageFTBBox:\n"; print_r ( imageFTBBox ( 20, 0, $font, $text ) ); ?> Expected result: ---------------- imagettftext: Array ( [0] => 111 [1] => 27 [2] => 219 [3] => 27 [4] => 219 [5] => 1 [6] => 111 [7] => 1 ) imagettfbbox: Array ( [0] => 0 [1] => 5 [2] => 108 [3] => 5 [4] => 108 [5] => -21 [6] => 0 [7] => -21 ) imageFTBBox: Array ( [0] => 0 [1] => 5 [2] => 108 [3] => 5 [4] => 108 [5] => -21 [6] => 0 [7] => -21 ) Actual result: -------------- imagettftext: Array ( [0] => 0 [1] => 27 [2] => 108 [3] => 27 [4] => 108 [5] => 0 [6] => 0 [7] => 0 ) imagettfbbox: Array ( [0] => -1 [1] => 5 [2] => 107 [3] => 5 [4] => 107 [5] => -21 [6] => -1 [7] => -21 ) imageFTBBox: Array ( [0] => -1 [1] => 5 [2] => 107 [3] => 5 [4] => 107 [5] => -21 [6] => -1 [7] => -21 ) ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=35255&edit=1