From:             frank at envirge dot com
Operating system: Fedora
PHP version:      5.0.0
PHP Bug Type:     GD related
Bug description:  Bundled GD library, imagettfbbox error, possibly other functions, 
found cause

Description:
------------
I just compiled PHP 5.0.0 release with:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl
--with-zlib --with-gd=/usr/local --with-ttf --with-mcrypt --with-mhash
--with-mysql --with-curl --without-sqlite --with-pear --enable-bcmath
--enable-calendar --enable-gd-native-ttf --enable-soap 
--with-freetype-dir=/usr/lib


I tried to run some ttf button making scripts that were funcional on a
previous installation of PHP (4.3.x I believe), however in 5.0.0 the
images weren't appearing because imagettfbbox() was returning impossibly
high and low values for all of the y values on the array elements for the
y values of the text box.  I thought the problem might be with the GD
library, so I installed PHP and pointed it to my local GD library (I'm
running the latest release) as well as my local libjpeg and libpng.  This
solved the problem, so I am pretty sure that the cause lies within the GD
library bundled with 5.0.0.

Here is my configuration that solved the problem:

./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-openssl
--with-zlib --with-gd=/usr/local --with-ttf --with-mcrypt --with-mhash
--with-mysql --with-curl --without-sqlite --with-pear --enable-bcmath
--enable-calendar --enable-gd-native-ttf --enable-soap
--with-png-dir=/usr/lib --with-jpeg-dir=/usr/lib
--with-freetype-dir=/usr/lib

I would really like to help.  Please let me know how.

Frank




 


Reproduce code:
---------------
I have a better explaination with sources, and results at this link:

http://www.envirge.com/frank/php_bug/

Expected result:
----------------
I have a better explaination with sources, and results at this link:

http://www.envirge.com/frank/php_bug/

Actual result:
--------------
I have a better explaination with sources, and results at this link:

http://www.envirge.com/frank/php_bug/

-- 
Edit bug report at http://bugs.php.net/?id=29192&edit=1
-- 
Try a CVS snapshot (php4):  http://bugs.php.net/fix.php?id=29192&r=trysnapshot4
Try a CVS snapshot (php5):  http://bugs.php.net/fix.php?id=29192&r=trysnapshot5
Fixed in CVS:               http://bugs.php.net/fix.php?id=29192&r=fixedcvs
Fixed in release:           http://bugs.php.net/fix.php?id=29192&r=alreadyfixed
Need backtrace:             http://bugs.php.net/fix.php?id=29192&r=needtrace
Need Reproduce Script:      http://bugs.php.net/fix.php?id=29192&r=needscript
Try newer version:          http://bugs.php.net/fix.php?id=29192&r=oldversion
Not developer issue:        http://bugs.php.net/fix.php?id=29192&r=support
Expected behavior:          http://bugs.php.net/fix.php?id=29192&r=notwrong
Not enough info:            http://bugs.php.net/fix.php?id=29192&r=notenoughinfo
Submitted twice:            http://bugs.php.net/fix.php?id=29192&r=submittedtwice
register_globals:           http://bugs.php.net/fix.php?id=29192&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=29192&r=php3
Daylight Savings:           http://bugs.php.net/fix.php?id=29192&r=dst
IIS Stability:              http://bugs.php.net/fix.php?id=29192&r=isapi
Install GNU Sed:            http://bugs.php.net/fix.php?id=29192&r=gnused
Floating point limitations: http://bugs.php.net/fix.php?id=29192&r=float

Reply via email to