mirror of
https://github.com/php/php-src.git
synced 2025-08-21 01:45:16 +02:00
MFB5.3: Fixed bug#43105 (PHP seems to fail to close open files.)
This commit is contained in:
parent
3b0f358d31
commit
003bb5ceaa
1 changed files with 1 additions and 0 deletions
|
@ -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';
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue