ID: 33401 Updated by: [EMAIL PROTECTED] Reported By: os at sumu dot org -Status: Open +Status: Bogus Bug Type: GD related Operating System: Linux x86-64 PHP Version: 5.0.4 New Comment:
Already fixed in CVS long time ago. Previous Comments: ------------------------------------------------------------------------ [2005-06-19 19:01:30] os at sumu dot org Description: ------------ ImageTTFText and friends are not 64-bit clean. They pass pointers to ints in a zend_parse_paramters call which believes it is dealing with longs. Attached is a patch to address this problem. This problem might exist also in other functions or extensions, I didn't have time to check them. ---8<---8<--- Fix int/long usage in php_imagettftext_common [EMAIL PROTECTED] --- ext/gd/gd.c~ 2005-06-19 19:40:51.000000000 +0300 +++ ext/gd/gd.c 2005-06-19 19:40:51.000000000 +0300 @@ -3109,7 +3109,8 @@ { zval *IM, *EXT = NULL; gdImagePtr im=NULL; - int col = -1, x = -1, y = -1, str_len, fontname_len, i, brect[8]; + int fontname_len, i, brect[8]; + long col = -1, x = -1, y = -1, str_len; double ptsize, angle; unsigned char *str = NULL, *fontname = NULL; char *error = NULL; Actual result: -------------- X offset is overwritten by the setting of Y offset. ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=33401&edit=1