From: Hannes Magnusson Date: Thu, 27 Dec 2007 02:10:26 +0000 (+0000) Subject: MFB5.3: Fixed bug#43105 (PHP seems to fail to close open files.) X-Git-Tag: php-5.2.6RC1~217 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7c9ab52ca44726c6655769229518648b2b18a074;p=php MFB5.3: Fixed bug#43105 (PHP seems to fail to close open files.) --- diff --git a/main/fopen_wrappers.c b/main/fopen_wrappers.c index e0122ff152..469b5c3e6b 100644 --- a/main/fopen_wrappers.c +++ b/main/fopen_wrappers.c @@ -620,6 +620,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';