Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:135 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 42560 invoked from network); 21 Mar 2003 17:40:40 -0000 Received: from unknown (HELO odin.hiof.no) (158.36.33.81) by pb1.pair.com with SMTP; 21 Mar 2003 17:40:40 -0000 Received: (from matsslin@localhost) by odin.hiof.no (8.11.6/8.11.6) id h2LHdM602352; Fri, 21 Mar 2003 18:39:22 +0100 Date: Fri, 21 Mar 2003 18:39:21 +0100 To: Antoine Cc: internals@lists.php.net Message-ID: <20030321183921.A29544@odin.hiof.no> References: <42794.80.67.170.17.1048262410.squirrel@rezo.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <42794.80.67.170.17.1048262410.squirrel@rezo.net>; from antoine@rezo.net on Fri, Mar 21, 2003 at 05:00:10PM +0100 Organization: Norsk Juletreforening X-Mailer: Mutt http://www.mutt.org/ X-URL: http://fisk.stjernesludd.net/ X-Juletre: Akkurat passe stort. Subject: Re: [PHP-DEV] Workaround for bug #15797 (inconsistent error behaviour with GD) From: mats.s.lindh@hiof.no (Mats Lindh) - %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