From 003bb5ceaaee1ba9ec4a2dac26723e65545e3982 Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Thu, 27 Dec 2007 02:11:05 +0000 Subject: [PATCH] MFB5.3: Fixed bug#43105 (PHP seems to fail to close open files.) --- main/fopen_wrappers.c | 1 + 1 file changed, 1 insertion(+) diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index 265505acf5..f7a9874401 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -592,6 +592,7 @@ PHPAPI char *expand_filepath(const char *filepath, char *real_path TSRMLS_DC) * relatively referenced file is accessible */ copy_len = strlen(filepath) > MAXPATHLEN - 1 ? MAXPATHLEN - 1 : strlen(filepath); real_path = estrndup(filepath, copy_len); + close(fdtest); return real_path; } else { cwd[0] = '\0'; -- 2.50.1