ID:               35255
 Updated by:       [EMAIL PROTECTED]
 Reported By:      phpbugs at exozet dot com
-Status:           Open
+Status:           Feedback
 Bug Type:         GD related
 Operating System: OpenSuSE 10.0 x86_64
 PHP Version:      4.4.1
 New Comment:

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.


Previous Comments:
------------------------------------------------------------------------

[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

Reply via email to