#21445 [NEW]: imagettfbbox and imagettftext fail with warning
| From: | soletan at toxa dot de | Date: | Sun, 05 Jan 2003 22:29:34 +0000 |
| Subject: | #21445 [NEW]: imagettfbbox and imagettftext fail with warning | ||
| Groups: | php.bugs | ||
| Request: | Send a blank email to php-bugs+get-29152@lists.php.net to get a copy of this message | ||
From: soletan@toxa.de
Operating system: SuSE Linux 7.2
PHP version: 4.3.0
PHP Bug Type: GD related
Bug description: imagettfbbox and imagettftext fail with warning
Hi,
I've update my 4.2.3 to freshly published 4.3.0. It works
with Apache 2.0.40 here ...
Nearly everything's fine. I used some script that
dynamically generates images with text in them. Under
4.2.3 everything was okay and created PNG for instance,
now under 4.3.0 the image files get malformed because of
two warnings which are preceding the non-working data:
Warning: imagettfbbox() [...]: arialbd.ttf in /home/... on
line xx
Warning: imagettftext() [...]: ..# in /home/... on line yy
Both are shortened inside the brackets and by the omitted
scriptname. The rest is as short as produced ...
What I'm calling is:
$font = "arialbd.ttf";
$text = "whatever";
$size = imagettfbbox( 10, 0, $font, $text );
[..]
imagettftext( $imgobj, 10, 0, 0, $height, $col, $font,
$text);
arialbd.ttf lies in same directory as script does.
Preceding both calls with @ lead to Apache/PHP not
answering anymore ... (faking some request with telnet
results in an unstoppable telnet client).
I compiled from source without any source patch or similar
with following configuration:
----
'./configure' '--with-apxs2' '--enable-discard-path'
'--with-debug' '--enable-safe-mode' '--with-exec-dir'
'--with-openssl' '--enable-sigchild'
'--enable-maqic-quotes' '--enable-libgcc' '--with-zlib'
'--enable-bcmath' '--with-bz2' '--enable-calendar'
'--with-db3' '--enable-dio' '--enable-ftp' '--with-gd'
'--enable-gd-native-ttf' '--enable-dl'
'--with-ming=/tmp/ming-0.2a/' '--with-ttf' '--with-t1lib'
'--with-jpeg-dir' '--with-png-dir' '--with-gettext'
'--with-imap' '--with-imap-ssl' '--enable-mbstring'
'--enable-mbregex' '--with-mcrypt' '--with-mysql=/usr'
'--with-pdflib' '--with-tiff-dir' '--enable-sockets'
'--with-regex=system' '--enable-tokenizer' '--with-xmlrpc'
---
check my php-config under http://www.toxa.de/test.php
On closing this report I repeat not to change any of the
circumstances which made the script working before under
4.2.3, even configure as shown above staid the same ...
Thank you for your help!
Thomas Urban
--
Edit bug report at http://bugs.php.net/?id=21445&edit=1
--
Try a CVS snapshot: http://bugs.php.net/fix.php?id=21445&r=trysnapshot
Fixed in CVS: http://bugs.php.net/fix.php?id=21445&r=fixedcvs
Fixed in release: http://bugs.php.net/fix.php?id=21445&r=alreadyfixed
Need backtrace: http://bugs.php.net/fix.php?id=21445&r=needtrace
Try newer version: http://bugs.php.net/fix.php?id=21445&r=oldversion
Not developer issue: http://bugs.php.net/fix.php?id=21445&r=support
Expected behavior: http://bugs.php.net/fix.php?id=21445&r=notwrong
Not enough info: http://bugs.php.net/fix.php?id=21445&r=notenoughinfo
Submitted twice: http://bugs.php.net/fix.php?id=21445&r=submittedtwice
register_globals: http://bugs.php.net/fix.php?id=21445&r=globals
PHP 3 support discontinued: http://bugs.php.net/fix.php?id=21445&r=php3
Daylight Savings: http://bugs.php.net/fix.php?id=21445&r=dst
IIS Stability: http://bugs.php.net/fix.php?id=21445&r=isapi
Install GNU Sed: http://bugs.php.net/fix.php?id=21445&r=gnused