|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[1999-05-16 11:24 UTC] ssb at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 14 21:00:01 2025 UTC |
this looks to be the same as #1313 it looks to me like the destructor for php3 fclose() is simply libc's fclose! functions/file.c GLOBAL(le_fp) = register_list_destructors(fclose,NULL); GLOBAL(le_pp) = register_list_destructors(__pclose,NULL); so i made it: GLOBAL(le_fp) = register_list_destructors(__fclose,NULL); GLOBAL(le_pp) = register_list_destructors(__pclose,NULL); and added: static void __fclose(FILE *fp) { TLS_VARS; fclose(fp); } that seems to fix it. of course, i have no clue what TLS_VARS is all about .. just copied from __pclose up above =:)