Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:139 Return-Path: Mailing-List: contact internals-help@lists.php.net; run by ezmlm Delivered-To: mailing list internals@lists.php.net Received: (qmail 88869 invoked from network); 21 Mar 2003 18:59:16 -0000 Received: from unknown (HELO mallaury.noc.nerim.net) (62.4.17.103) by pb1.pair.com with SMTP; 21 Mar 2003 18:59:16 -0000 Received: from courbevoie-101-1-21.net1.nerim.net (courbevoie-101-1-21.net1.nerim.net [213.41.180.21]) by mallaury.noc.nerim.net (Postfix) with ESMTP id D7A7962D04 for ; Fri, 21 Mar 2003 19:59:13 +0100 (CET) To: internals@lists.php.net In-Reply-To: <20030321183921.A29544@odin.hiof.no> References: <42794.80.67.170.17.1048262410.squirrel@rezo.net> <20030321183921.A29544@odin.hiof.no> Content-Type: text/plain Organization: Message-ID: <1048273105.3318.13.camel@fsol> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.2.1 Date: 21 Mar 2003 19:58:25 +0100 Content-Transfer-Encoding: 7bit Subject: Re: [PHP-DEV] Workaround for bug #15797 (inconsistent error behaviour with GD) From: antoine@rezo.net (Antoine) 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.