#21049 [Opn->Bgs]: Gd support does not match libgd declarations
| From: | iliaa@php.net | Date: | Mon, 16 Dec 2002 17:21:17 +0000 |
| Subject: | #21049 [Opn->Bgs]: Gd support does not match libgd declarations | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-27870@lists.php.net to get a copy of this message | ||
ID: 21049
Updated by: iliaa@php.net
Reported By: wildfyr9@hotmail.com
-Status: Open
+Status: Bogus
Bug Type: Compile Failure
Operating System: Cobalt Linux
PHP Version: 4.2.3
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
If you must use GD 1.X use 1.8.4, PHP 4.3.0 already comes with bundled
GD library that has been tested & works properly.
Previous Comments:
------------------------------------------------------------------------
[2002-12-16 11:13:47] wildfyr9@hotmail.com
In PHP 4.2.3 (and some previous versions) the ext/gd/* files do not
match older libgd installations (such as the 1.2 version that ships on
RaQ4 servers. In particular, it includes a 'static' declaration of
gdImageColorResolve when it should be 'extern' (see
http://i4net.tv/marticle/get.php?action=getarticle&articleid=20
for
another report of this bug) and it re-defined (incompatibly) the
gdIOCtx object.
To make the compile work I had to modify both php_gd.h and gd.c:
*** ext/gd/php_gd.h.4.2.3 Mon Dec 16 18:02:43 2002
--- ext/gd/php_gd.h Mon Dec 16 18:03:41 2002
***************
*** 66,72 ****
PHP_MSHUTDOWN_FUNCTION(gd);
#ifndef HAVE_GDIMAGECOLORRESOLVE
! static int gdImageColorResolve(gdImagePtr, int, int, int);
#endif
PHP_FUNCTION(imagearc);
PHP_FUNCTION(imagechar);
--- 66,72 ----
PHP_MSHUTDOWN_FUNCTION(gd);
#ifndef HAVE_GDIMAGECOLORRESOLVE
! extern int gdImageColorResolve(gdImagePtr, int, int, int);
#endif
PHP_FUNCTION(imagearc);
PHP_FUNCTION(imagechar);
*** ext/gd/php_gd.h.4.2.3 Mon Dec 16 18:02:43 2002
--- ext/gd/php_gd.h Mon Dec 16 18:03:41 2002
***************
*** 66,72 ****
PHP_MSHUTDOWN_FUNCTION(gd);
#ifndef HAVE_GDIMAGECOLORRESOLVE
! static int gdImageColorResolve(gdImagePtr, int, int, int);
#endif
PHP_FUNCTION(imagearc);
PHP_FUNCTION(imagechar);
--- 66,72 ----
PHP_MSHUTDOWN_FUNCTION(gd);
#ifndef HAVE_GDIMAGECOLORRESOLVE
! extern int gdImageColorResolve(gdImagePtr, int, int, int);
#endif
PHP_FUNCTION(imagearc);
PHP_FUNCTION(imagechar);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=21049&edit=1