MFB5.3: Fixed bug#43105 (PHP seems to fail to close open files.)

This commit is contained in:
Hannes Magnusson 2007-12-27 02:11:05 +00:00
parent 3b0f358d31
commit 003bb5ceaa

View file

@ -592,6 +592,7 @@ PHPAPI char *expand_filepath(const char *filepath, char *real_path TSRMLS_DC)
* relatively referenced file is accessible */ * relatively referenced file is accessible */
copy_len = strlen(filepath) > MAXPATHLEN - 1 ? MAXPATHLEN - 1 : strlen(filepath); copy_len = strlen(filepath) > MAXPATHLEN - 1 ? MAXPATHLEN - 1 : strlen(filepath);
real_path = estrndup(filepath, copy_len); real_path = estrndup(filepath, copy_len);
close(fdtest);
return real_path; return real_path;
} else { } else {
cwd[0] = '\0'; cwd[0] = '\0';