1
0
mirror of https://github.com/php/php-src.git synced 2026-04-05 07:02:33 +02:00

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

This commit is contained in:
Hannes Magnusson
2007-12-27 02:09:26 +00:00
parent b4e95c3e19
commit c236bcd80e

View File

@@ -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';