image.inc : GD version detect buggy

Message boards : Web interfaces : image.inc : GD version detect buggy
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 4926 - Posted: 6 Jul 2006, 7:30:20 UTC
Last modified: 6 Jul 2006, 7:36:43 UTC

In Spinhenge, BOINC detects $newGD = true but still they don't have imageAntiAlias() in their LibGD.

Maybe as a first quick solution you could prefix imageAntiAlias() with a @ in order to make PHP ignore the error.

imageAntiAlias() is only available in certain PHP setups :
This function is only available if PHP is compiled with the bundled version of the GD library.


The current detect
$newGD = (strstr($gd_info["GD Version"], "2.0")!="");
in image.inc seems not to hit the point.


p.s.: Afaik. CPDN had exactly the same problem some time ago
��u�
ID: 4926 · Report as offensive
Profile Ananas

Send message
Joined: 27 Jun 06
Posts: 305
Germany
Message 4991 - Posted: 13 Jul 2006, 0:07:50 UTC

What about this :

$newGD = function_exists('imageAntiAlias');
��u�
ID: 4991 · Report as offensive

Message boards : Web interfaces : image.inc : GD version detect buggy

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.