summaryrefslogtreecommitdiff
path: root/main
diff options
context:
space:
mode:
authorHannes Magnusson <bjori@php.net>2007-12-27 02:09:26 +0000
committerHannes Magnusson <bjori@php.net>2007-12-27 02:09:26 +0000
commitc236bcd80ee698aaf183fc09b09931f7206c624a (patch)
tree2416cbc76e39aec63a5e60d9d1e846d7694fd86d /main
parentb4e95c3e19e052182adf688d475c39ee5d58d6ee (diff)
downloadphp-git-c236bcd80ee698aaf183fc09b09931f7206c624a.tar.gz
Fixed bug#43105 (PHP seems to fail to close open files.)
Diffstat (limited to 'main')
-rw-r--r--main/fopen_wrappers.c1
1 files changed, 1 insertions, 0 deletions
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';