php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #19542 imagettfbbox() ... undefined
Submitted: 2002-09-21 11:25 UTC Modified: 2002-10-14 19:26 UTC
Votes:9
Avg. Score:4.6 ± 1.3
Reproduced:8 of 8 (100.0%)
Same Version:3 (37.5%)
Same OS:3 (37.5%)
From: fxbois at free dot fr Assigned:
Status: No Feedback Package: GD related
PHP Version: 4.2.3 OS: linux redhat 6.2
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: fxbois at free dot fr
New email:
PHP Version: OS:

 

 [2002-09-21 11:25 UTC] fxbois at free dot fr
I have this error with the 4.2.3 :
Call to undefined function:  imagettfbbox()

No problem with configuration or compilation ...

I have the same system and same web application for a long long time ...

The porblem has appeared with this version ...

The configuration line :

./configure --with-config-file-path=/etc/httpd --with-apxs --disable-debug --enable-versioning --enable-safe-mode --enable-memory-limit --with-mysql --enable-ftp --with-zlib --with-gd --enable-gd-native-ttf --with-ttf --with-jpeg-dir --with-xpm-dir=/usr/X11R6 --with-png-dir --with-tiff-dir --enable-bcmath --with-pdflib --with-imap --with-kerberos --with-imap-ssl

i also tried with --with-ttf=/usr/lib


it is gd-1.8.3

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-09-21 11:27 UTC] fxbois at free dot fr
I forgot to tell that I also tried with php-latest
 [2002-09-22 14:33 UTC] iliaa@php.net
Check your phpinfo() for GD module, it is possible it was never compiled due to some mis-configuration issue.
 [2002-09-22 16:25 UTC] fxbois at free dot fr
in the phpinfo nothing appears in the gd section about truetype font ... (it used to before)
 [2002-09-26 17:10 UTC] iliaa@php.net
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-27 02:36 UTC] fxbois at free dot fr
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-27 06:47 UTC] iliaa@php.net
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-10-09 16:40 UTC] diederik at visionextendaz dot NO-SPAM dot nl
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...
 [2002-10-14 19:26 UTC] php-bugs at lists dot php dot net
No feedback was provided for this bug for over a month, so it is
being suspended automatically. If you are able to provide the
information that was originally requested, please do so and change
the status of the bug back to "Open".
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Wed Dec 25 21:01:28 2024 UTC