CVS update: php3/functions
| From: | ssb | Date: | Sun, 16 May 1999 15:44:57 +0000 |
| Subject: | CVS update: php3/functions | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-5699@lists.php.net to get a copy of this message | ||
Date: Sunday May 16, 1999 @ 11:44
Author: ssb
Update of /repository/php3/functions
In directory php:/tmp/cvs-serv28366
Modified Files:
zlib.c
Log Message:
glibc 2.1.1 stack corruption fix
Index: php3/functions/zlib.c
diff -u php3/functions/zlib.c:1.14 php3/functions/zlib.c:1.15
--- php3/functions/zlib.c:1.14 Sat Feb 27 10:52:14 1999
+++ php3/functions/zlib.c Sun May 16 11:44:57 1999
@@ -22,7 +22,7 @@
| Stefan Röhrich <sr@linux.de> |
+----------------------------------------------------------------------+
*/
-/* $Id: zlib.c,v 1.14 1999/02/27 15:52:14 sas Exp $ */
+/* $Id: zlib.c,v 1.15 1999/05/16 15:44:57 ssb Exp $ */
#if !PHP_31 && defined(THREAD_SAFE)
#undef THREAD_SAFE
#endif
@@ -159,6 +159,10 @@
DLEXPORT php3_module_entry *get_module(void) { return &php3_zlib_module_entry; }
#endif
+static void php3i_destructor_gzclose(gzFile *zp) {
+ (void)gzclose(zp);
+}
+
int php3_minit_zlib(INIT_FUNC_ARGS)
{
#ifdef THREAD_SAFE
@@ -185,7 +189,7 @@
cfg_get_string("doc_root",&ZLIB_INI(doc_root));
cfg_get_string("include_path",&ZLIB_INI(include_path));
- ZLIB_GLOBAL(le_zp) = register_list_destructors(gzclose,NULL);
+ ZLIB_GLOBAL(le_zp) = register_list_destructors(php3i_destructor_gzclose,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