Re: Workaround for bug #15797 (inconsistent error behaviour with GD)
| From: | Mats Lindh | Date: | Fri, 21 Mar 2003 17:39:21 +0000 |
| Subject: | Re: Workaround for bug #15797 (inconsistent error behaviour with GD) | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-135@lists.php.net to get a copy of this message | ||
- %antoine@rezo.net% (Antoine):
> See my comment at the end. It seems several PHP versions are plagued
> by this problem. I'd like to find a way to circumvent it, because
> we need our program to work with all PHP & GD versions. Unfortunately
> the fact that a fatal error is yielded when calling imagecreatetruecolor
> with the wrong GD version makes it seemingly impossible.
>
> Does anybody have an answer to this ?
>
> (note : another bug seems identical :
> http://bugs.php.net/bug.php?id=16002)
As the post says, this was fixed in CVS at the time. The change should
be available in PHP 4.3.x, where the functions availbility could be
checked with functions_exists(). There is also a function named
gd_info() which provides version information in PHP 4.3.x. Prior to
this I think you'll have to create something which parses the output
from phpinfo() for more information. For further assistance on that,
contact php-general@lists.php.net.
--
mats