Re: Workaround for bug #15797 (inconsistent error behaviour with GD)

From: Date: Fri, 21 Mar 2003 18:58:25 +0000
Subject: Re: Workaround for bug #15797 (inconsistent error behaviour with GD)
References: 1 2  Groups: php.internals 
Request: Send a blank email to internals+get-139@lists.php.net to get a copy of this message
Hi, > 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(). Well, PHP 4.3 solves the problem by embedding its own GD version anyway ;-) > 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. Well, if I'm in the mood for ugly hacks, I may use output buffering to get back phpinfo() results... Otherwise what I'm gonna do is probably to disable high-quality thumbnails (a.k.a. ImageCreateTrueColor and ImageCopyResampled) on versions below 4.3.0. If people ask why this is the case, I'll explain that their PHP version is badly coded and forbids us to do a runtime check for these functions... Thank you for your answer, Regards Antoine.

« previous php.internals (#139) next »