CVS update: php3/functions

From: Date: Sun, 16 May 1999 15:14:36 +0000
Subject: CVS update: php3/functions
Groups: php.dev 
Request: Send a blank email to php-dev+get-5693@lists.php.net to get a copy of this message
Date: Sunday May 16, 1999 @ 11:14 Author: ssb Update of /repository/php3/functions In directory php:/tmp/cvs-serv21903 Modified Files: file.c Log Message: using "fclose" directly as a destructor function seems to corrupt the stack with glibc 2.1.1 when PHP is compiled as a shared module. fix. Index: php3/functions/file.c diff -u php3/functions/file.c:1.208 php3/functions/file.c:1.209 --- php3/functions/file.c:1.208 Tue May 11 08:11:40 1999 +++ php3/functions/file.c Sun May 16 11:14:36 1999 @@ -26,7 +26,7 @@ | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca> | +----------------------------------------------------------------------+ */ -/* $Id: file.c,v 1.208 1999/05/11 12:11:40 rasmus Exp $ */ +/* $Id: file.c,v 1.209 1999/05/16 15:14:36 ssb Exp $ */ #ifdef THREAD_SAFE #include "tls.h" #endif @@ -453,11 +453,15 @@ } } +static void php3i_destructor_fclose(FILE *fp) { + (void)fclose(fp); +} + int php3_minit_file(INIT_FUNC_ARGS) { TLS_VARS; - GLOBAL(le_fp) = register_list_destructors(fclose,NULL); + GLOBAL(le_fp) = register_list_destructors(php3i_destructor_fclose,NULL); GLOBAL(le_pp) = register_list_destructors(__pclose,NULL); GLOBAL(wsa_fp) = register_list_destructors(_php3_closesocket,NULL); GLOBAL(le_uploads) = register_list_destructors(_php3_unlink_uploaded_file,NULL); -- 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

« previous php.dev (#5693) next »