ID: 28175 Comment by: ottenhoff at longsight dot com Reported By: Paul dot Gardiner at Barleychalu dot Co dot Uk Status: Closed Bug Type: Compile Failure Operating System: slackware 9.1, 2.4.25 kernel PHP Version: 4.3.6/4.3.7 Assigned To: iliaa New Comment:
I received the same error with 4.3.8 on Red Hat 8.0 w/ Freetype 2.1.2. It looks like gdft.c 1.11.2.18 did not make it in 4.3.8. The one changed line in 1.11.2.18 fixed the problem for me. http://cvs.php.net/php-src/ext/gd/libgd/gdft.c Previous Comments: ------------------------------------------------------------------------ [2004-07-13 20:49:00] karen at lilycreek dot net My host just upgraded to Plesk 7 with PHP 4.3.6 from Plesk 6.0 PHP 4.1.0 (I believe) I am running a Textpng php class calling a website's logo thru an image tag like so <img src="http://205.214.89.29/text2.php?msg=Pattys Plaster Gifts&rot=0&size=32&font=/home/httpd/vhosts/ionservers.com/httpdocs/fonts/HEATHER.TTF&pad=10&clr=cccccc"> I realize this isn't the most secure but it's the only way I could get the class to work on the old server which you can see it works if you view the image thru your browser, but now with the new server <img src="http://ionservers.com/text2.php?msg=Pattys Plaster Gifts&rot=0&size=32&font=/home/httpd/vhosts/ionservers.com/httpdocs/fonts/HEATHER.TTF&pad=10&clr=cccccc"> It does'nt work, I don't know if it's not initiating the vars or can't open the font file. This is a major problem for me as I have several hundred users running this for their website's main title logo. I've tried for over 20 hours straight to get it to work on the new system to no avail. Can someone please point me in the right direction for a solution. Wether the script needs a rewrite or a different PHP version needs to be installed, I'm stuck with hundreds of users breathing down my neck. Thanks soooo much for any help or suggestions. Karen ------------------------------------------------------------------------ [2004-06-09 16:50:41] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ [2004-06-07 12:44:48] [EMAIL PROTECTED] Operation mistake;-( ------------------------------------------------------------------------ [2004-06-07 12:16:48] [EMAIL PROTECTED] The problem is not solved. Correction of gdft.c is inadequate. Therefore, it cannot still build by freetype 2.1.2. Here is diff from php-4.3.7. ----Cut Here----Cut Here----Cut Here----Cut Here----Cut Here---- --- php-4.3.7/ext/gd/libgd/gdft.c 2004-05-10 02:34:02.000000000 +0900 +++ php-4.3.7.new/ext/gd/libgd/gdft.c 2004-06-07 15:20:19.000000000 +0900 @@ -984,7 +984,7 @@ } /* EAM DEBUG */ -#if (defined(FREETYPE_MAJOR) && (FREETYPE_MAJOR >=2 ) && (FREETYPE_MINOR >= 1)) +#if (defined(FREETYPE_MAJOR) && ((FREETYPE_MAJOR == 2 && ((FREETYPE_MINOR == 1 && FREETYPE_PATCH >= 3) || FREETYPE_MINOR > 1) || FREETYPE_MAJOR > 2))) if (font->face->charmap->encoding == FT_ENCODING_MS_SYMBOL) { /* I do not know the significance of the constant 0xf000. * It was determined by inspection of the character codes ----Cut Here----Cut Here----Cut Here----Cut Here----Cut Here---- I check build on red hat linux 7.2/7.3/8/9, red hat enterprise linux 2.1/3.0 and turbolinux 8 server. The problem was generated in redhat linux 8. ------------------------------------------------------------------------ [2004-05-09 19:34:08] [EMAIL PROTECTED] This bug has been fixed in CVS. Snapshots of the sources are packaged every three hours; this change will be in the next snapshot. You can grab the snapshot at http://snaps.php.net/. Thank you for the report, and for helping us make PHP better. ------------------------------------------------------------------------ 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/28175 -- Edit this bug report at http://bugs.php.net/?id=28175&edit=1