From: admin at students-fhtw dot de Operating system: linux PHP version: 4.3.9 PHP Bug Type: GD related Bug description: imageftbbox does not use linespacing parameter
Description: ------------ It seems like imageftbbox() is not using the linespacing parameter whereas imagefttext() does. I have been trying to figure out the problem but so far I have no other clue than it being a bug. I have tried both postscipt and truetype fonts. configure parameters: './configure' '--program-prefix=' '--prefix=/usr' '--exec-prefix=/usr' '--bindir=/usr/bin' '--sbindir=/usr/sbin' '--sysconfdir=/etc' '--datadir=/usr/share' '--includedir=/usr/include' '--libdir=/usr/lib' '--libexecdir=/usr/libexec' '--localstatedir=/var' '--sharedstatedir=/usr/com' '--mandir=/usr/share/man' '--infodir=/usr/share/info' '--cache-file=../config.cache' '--with-config-file-path=/etc' '--with-config-file-scan-dir=/etc/php.d' '--enable-force-cgi-redirect' '--disable-debug' '--enable-pic' '--disable-rpath' '--enable-inline-optimization' '--with-bz2' '--with-dom=/usr' '--with-exec-dir=/usr/bin' '--with-freetype-dir=/usr' '--with-png-dir=/usr' '--with-gd' '--enable-gd-native-ttf' '--with-ttf' '--with-gdbm' '--with-gettext' '--with-iconv' '--with-jpeg-dir=/usr' '--with-openssl' '--with-png' '--with-pspell' '--with-regex=system' '--with-xml' '--with-expat' '--with-zlib=/usr/local' '--with-zlib-dir=/usr/local' '--with-layout=GNU' '--enable-bcmath' '--enable-exif' '--enable-ftp' '--enable-magic-quotes' '--enable-safe-mode' '--enable-sockets' '--enable-sysvsem' '--enable-sysvshm' '--enable-discard-path' '--enable-track-vars' '--enable-trans-sid' '--enable-yp' '--enable-wddx' '--without-oci8' '--with-pear=/usr/share/pear' '--with-imap' '--with-imap-ssl' '--with-kerberos' '--with-ldap' '--with-mysql=/usr' '--enable-memory-limit' '--enable-shmop' '--enable-versioning' '--enable-calendar' '--enable-dbx' '--enable-dio' '--enable-mcal' '--enable-dba' '--enable-dbase' '--with-ndbm' '--with-ndb' '--with-mcrypt' '--with-curl=/usr/local' '--with-apxs=/usr/local/apache/bin/apxs' Reproduce code: --------------- <?php $bbox = imageftbbox( 10, 0, "0371A___.PFB", "Text Text Text Text Text Text\r\nText Text", array("linespacing" => 0.3) ); trigger_error($bbox[1] - $bbox[5]); ?> Expected result: ---------------- I expected different values for the height ($bbox[1] - $bbox[5]) for different linespacing parameters. Actual result: -------------- The height reported is always "30" regardless of the supplied linespacing value (eg. 0.3, 1.0, 2.3 etc.). -- Edit bug report at http://bugs.php.net/?id=31060&edit=1 -- Try a CVS snapshot (php4): http://bugs.php.net/fix.php?id=31060&r=trysnapshot4 Try a CVS snapshot (php5.0): http://bugs.php.net/fix.php?id=31060&r=trysnapshot50 Try a CVS snapshot (php5.1): http://bugs.php.net/fix.php?id=31060&r=trysnapshot51 Fixed in CVS: http://bugs.php.net/fix.php?id=31060&r=fixedcvs Fixed in release: http://bugs.php.net/fix.php?id=31060&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=31060&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=31060&r=needscript Try newer version: http://bugs.php.net/fix.php?id=31060&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=31060&r=support Expected behavior: http://bugs.php.net/fix.php?id=31060&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=31060&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=31060&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=31060&r=globals PHP 3 support discontinued: http://bugs.php.net/fix.php?id=31060&r=php3 Daylight Savings: http://bugs.php.net/fix.php?id=31060&r=dst IIS Stability: http://bugs.php.net/fix.php?id=31060&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=31060&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=31060&r=float MySQL Configuration Error: http://bugs.php.net/fix.php?id=31060&r=mysqlcfg