ID:               19542
 Comment by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
 Status:           Feedback
 Bug Type:         GD related
 Operating System: linux redhat 6.2
 PHP Version:      4.2.3
 New Comment:

I have expirienced the same thing, recompiled PHP time after time,
'till i realised not PHP was the faulty one, but GD!

I have done the following (under RedHat 8.0):

1) Download and install both RPM's for FreeType (current:
freetype-2.1.2.7*.rpm and freetype-devel-2.1.2.7*.rpm)
2) Download GD 1.8.4 from http://www.boutell.com/gd/
3) Edit the makefile and BE SURE to check freetype-support
(various options in the Makefile)
4) Include /usr/lib/freetype1/freetype in the INCLUDE_DIR= line
(otherwise make will stumble on "tff.h" or so... )
5) (optional) Set the "make install" directories to /usr/ instead of
/usr/local/
6) "Make" and "Make Install" GD
7) Configure PHP 4.2.3 --with-gd --with-freetype-dir=/usr/lib/
--with-ttf-dir=/usr/lib --enable-gd-native-ttf
8) "Make" and "Make Install" PHP.

After this, imagettfbbox() was recognised as a function on my
PHP-pages...


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

[2002-09-27 06:47:53] [EMAIL PROTECTED]

It appears that php does not detect ttf and does not install the
support for it. If it did, your phpinfo would show the following 2
lines under the GD config:
FreeType Support => enabled
FreeType Linkage => with TTF library

Look at the config.log file and inside it look for any errors
pertaining to ttf. It is highly likely that PHP simply cannot find the
needed libs.

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

[2002-09-27 02:36:47] [EMAIL PROTECTED]

I've compiled without --enable-gd-native-ttf ... 
Itcompiles ok, but I hve the same error (which is logical) and the
phpinfo print this :
GD Support enabled 
GD Version 1.6.2 or higher 
JPG Support enabled 
PNG Support enabled 
WBMP Support enabled

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

[2002-09-26 17:10:41] [EMAIL PROTECTED]

If you try to compile without the --enable-gd-native-ttf flag does the
error still occur? Also, check your phpinfo() in regard to the gd
settings if the problem persists please include those in your report as
well.

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

[2002-09-22 16:25:40] [EMAIL PROTECTED]

in the phpinfo nothing appears in the gd section about truetype font
... (it used to before)

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

[2002-09-22 14:33:36] [EMAIL PROTECTED]

Check your phpinfo() for GD module, it is possible it was never
compiled due to some mis-configuration issue.

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

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/19542

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

Reply via email to