Re: Help, anyone else using GD2 & php 4.1.2 ?
| From: | Matt Parlane | Date: | Wed, 10 Apr 2002 03:06:56 +0000 |
| Subject: | Re: Help, anyone else using GD2 & php 4.1.2 ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92336@lists.php.net to get a copy of this message | ||
http://bugs.php.net/bug.php?id=15568
This bug has been fixed in the latest RC - if you really need this
functionality, you could use RC2 available at www.php.net/~derick or wait
until 4.2.0 is realeased which is due to be on the 22nd of this month.
Matt
"Mark W. Humphries" <mwh@intranetsys.com> wrote in message
news:KBEOIBHLBADEFHPLPFGBOEMIDNAA.mwh@intranetsys.com...
> Any help with this problem would be greatly appreciated.
>
> I'm running PHP 4.1.2 on Win 2000 and Apache.
>
> The following snippet runs perfectly when I use php_gd.dll but generates a
> garbled warning message when I switch the extension to php_gd2.dll. The
only
> change I make to my setup is the corresponging extension directive in the
> php.ini file.
> I get the following error message, similar ones appear for any of the
> trutype related functions I call in the rest of my code.
>
> "Warning: @Ép in c:\program files\apache group\apache\htdocs\test.php on
> line 10"
> (line 10 being the imageTTFText call in the following code:
>
> $image = imagecreate(500, 500);
>
> define( 'BEIGE', imagecolorallocate($image, 245, 245, 220) ); #
Background
> color
> define( 'BLACK', imagecolorallocate($image, 0, 0, 0) );
>
> imageTTFText($image, 32, 0, 100, 100, BLACK,
> 'c:/WINNT/Fonts/times.ttf','HELLO');
>
> header('Content-type: image/png');
> imagepng($image);
>
> Cheers,
> Mark
>