CVS update: php3/functions
| From: | ssb | Date: | Sun, 16 May 1999 15:45:09 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5700@lists.php.net to get a copy of this message | ||
Date: Sunday May 16, 1999 @ 11:45
Author: ssb
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv28576
Modified Files:
gd.c
Log Message:
glibc 2.1.1 stack corruption fix
Index: php3/functions/gd.c
diff -u php3/functions/gd.c:1.107 php3/functions/gd.c:1.108
--- php3/functions/gd.c:1.107 Thu Apr 22 09:19:50 1999
+++ php3/functions/gd.c Sun May 16 11:45:09 1999
@@ -29,7 +29,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: gd.c,v 1.107 1999/04/22 13:19:50 ssb Exp $ */
+/* $Id: gd.c,v 1.108 1999/05/16 15:45:09 ssb Exp $ */
/* gd 1.2 is copyright 1994, 1995, Quest Protein Database Center,
Cold Spring Harbor Labs. */
@@ -164,6 +164,9 @@
#define PolyMaxPoints 256
+static void php3i_destructor_gdImageDestroy(gdImagePtr img) {
+ (void)gdImageDestroy(img);
+}
int php3_minit_gd(INIT_FUNC_ARGS)
{
@@ -185,7 +188,7 @@
return FAILURE;
}
#endif
- GD_GLOBAL(le_gd) = register_list_destructors(gdImageDestroy, NULL);
+ GD_GLOBAL(le_gd) = register_list_destructors(php3i_destructor_gdImageDestroy, NULL);
GD_GLOBAL(le_gd_font) = register_list_destructors(php3_free_gd_font, NULL);
return SUCCESS;
}
--
PHP Development Mailing List http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe@lists.php.net
For help: php-dev-help@lists.php.net