php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #14876 ImageTTFText produces strange Warning
Submitted: 2002-01-05 14:49 UTC Modified: 2002-06-07 07:41 UTC
Votes:15
Avg. Score:4.7 ± 0.6
Reproduced:15 of 15 (100.0%)
Same Version:13 (86.7%)
Same OS:12 (80.0%)
From: apz at iname dot com Assigned:
Status: Not a bug Package: GD related
PHP Version: 4.1.1 OS: Windows 2000
Private report: No CVE-ID: None
View Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or if you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: apz at iname dot com
New email:
PHP Version: OS:

 

 [2002-01-05 14:49 UTC] apz at iname dot 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

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2002-04-13 19:31 UTC] Jouser at attbi dot 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-06-07 07:41 UTC] edink@php.net
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.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 19:01:33 2024 UTC