Bug #14876 Updated: ImageTTFText produces strange Warning
| From: | edink@php.net | Date: | Fri, 07 Jun 2002 11:41:53 +0000 |
| Subject: | Bug #14876 Updated: ImageTTFText produces strange Warning | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-9743@lists.php.net to get a copy of this message | ||
ID: 14876
Updated by: edink@php.net
Reported By: apz@iname.com
-Status: Open
+Status: Bogus
Bug Type: GD related
Operating System: Windows 2000
PHP Version: 4.1.1
New Comment:
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from http://www.php.net/downloads.php
If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.
Previous Comments:
------------------------------------------------------------------------
[2002-04-13 19:31:13] Jouser@attbi.com
Does anyone know if the same person who compiled php_gd.dll also
compiled php_gd2.dll?
I think the problem might be that whoever compiled the php_gd2.dll that
ships with PHP forgot to compile FreeType library while compiling GD.
This is only a guess because I heard someone say that ImageTTFtext
works on unix machines which leads me to believe this is the problem. I
would test it myself but I don't know how to compile the file :-(
------------------------------------------------------------------------
[2002-01-05 14:49:22] apz@iname.com
Hi.
I can't use ImageTTFText with PHP_GD2.DLL (on Windows 2000).
The Following Code works on GD1 with 4.1.1 and also GD2 with 4.0.6
(both downloadable compilations) ...
$im = ImageCreate (300, 300);
$color = ImageColorAllocate ($im, 255,135,000);
$black = ImageColorAllocate ($im, 000,000,000);
$white = ImageColorAllocate ($im, 255,255,255);
ImageFill ($im, 0,0, $color);
ImageTTFText ($im, 9, 0, 10, 200, $white, "\WINNT\Fonts\verdana.ttf",
"Hello");
ImagePNG ($im);
And produces a Warning like this.
"Warning: & in f:\http\test\php\testat.php on line 9"
The five chars following the "Warning:" are different depending at
least on the give font-path (IMHO).
I tried varios combinations: Path seperation with "/" and "\", several
locations: Absolute paths, fonts beeing in the script directory. apache
directory, php directory, with and without leading drive-letter.
GD2 is the only extension included.
Win2KSP2(German)/Apache 1.3.22/PHP 4.1.1
+++adam
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=14876&edit=1