Edit report at http://bugs.php.net/bug.php?id=51315&edit=1

 ID:                 51315
 Comment by:         natan dot frei at gmail dot com
 Reported by:        administrateur at exinsidephp dot com
 Summary:            imagettfbbox randomly don't work
 Status:             Assigned
 Type:               Bug
 Package:            GD related
 Operating System:   Debian GNU/Linux 5.0
 PHP Version:        5.3.2
 Assigned To:        pajoye
 Block user comment: N

 New Comment:

Debian Lenny

Linux v101.domain 2.6.26-2-openvz-686 #1 SMP Thu Sep 16 22:16:19 UTC
2010 i686 GNU/Linux

# dpkg -l | grep php

ii  libapache2-mod-php5             5.2.6.dfsg.1-1+lenny9   
server-side, HTML-embedded scripting languag

ii  php-pear                        5.2.6.dfsg.1-1+lenny9    PEAR - PHP
Extension and Application Reposit

ii  php5                            5.2.6.dfsg.1-1+lenny9   
server-side, HTML-embedded scripting languag

ii  php5-cli                        5.2.6.dfsg.1-1+lenny9   
command-line interpreter for the php5 script

ii  php5-common                     5.2.6.dfsg.1-1+lenny9    Common
files for packages built from the php

ii  php5-curl                       5.2.6.dfsg.1-1+lenny9    CURL module
for php5

ii  php5-gd                         5.2.6.dfsg.1-1+lenny9    GD module
for php5

ii  php5-suhosin                    0.9.27-1                 advanced
protection module for php5



The same issue.

Sometimes imagettfbbox returns wrong value for x position.

For example:

-1,0,-2147483648,0,-2147483648,-12,-1,-12


Previous Comments:
------------------------------------------------------------------------
[2010-08-03 09:46:43] administrateur at exinsidephp dot com

I have upgrade my server for install DotDeb package with PHP 5.3.3
(apt-get update && apt-get ugrade) and the problem have disapear with
this release.

------------------------------------------------------------------------
[2010-07-17 20:50:47] geiss...@php.net

According to Sean, this appears to be a bug in libgd that has been fixed
in the 

copy included by PHP but not at upstream. I'm afraid I don't know any
other 

detail.

Pierre, could you please take a look at it? (and if possible, update
libgd 

upstream :)

------------------------------------------------------------------------
[2010-05-01 17:29:47] geiss...@php.net

I tried with the following versions and with all of them the result is
the same:

4.1.2, 4.2.4, 4.3.4, 4.4.3



So it's a bug on libgd's side. Will ask Sean as he is the maintainer at
Debian.

------------------------------------------------------------------------
[2010-03-23 20:59:14] geiss...@php.net

Strange that you mention that it works with gcc 4.1.2. Last I heard
5.3.x failed to build with that version (don't know what arch was that,
though).



Will take a look at it later. FWIW, a test related to imagettfbbox is
reproducibly failing (with the same results on all archs):



ext/gd/tests/bug48801.log:

---- EXPECTED OUTPUT

(-1, 15)

(155, 15)

(155, -48)

(-1, -48)

---- ACTUAL OUTPUT

(1, 15)

(163, 15)

(163, -48)

(1, -48)

---- FAILED



And that was with 4.4.3 (same results without optimisation). Has anyone
tried to reproduce it with the same or similar versions of gcc from
another distribution?

------------------------------------------------------------------------
[2010-03-23 15:04:59] paj...@php.net

Raphael, can you take a look at this one please?

------------------------------------------------------------------------


The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at

    http://bugs.php.net/bug.php?id=51315


-- 
Edit this bug report at http://bugs.php.net/bug.php?id=51315&edit=1

Reply via email to