mirror of
https://github.com/php/php-src.git
synced 2025-08-16 14:08:47 +02:00
Revert patch
This commit is contained in:
parent
e67b4072e0
commit
00d0ecda10
1 changed files with 1 additions and 8 deletions
|
@ -200,14 +200,7 @@ PHPAPI const char* php_get_temporary_directory(void)
|
|||
{
|
||||
char* s = getenv("TMPDIR");
|
||||
if (s) {
|
||||
int len = strlen(s);
|
||||
|
||||
if (s[len - 1] == DEFAULT_SLASH) {
|
||||
temporary_directory = zend_strndup(s, len - 1);
|
||||
} else {
|
||||
temporary_directory = zend_strndup(s, len);
|
||||
}
|
||||
|
||||
temporary_directory = strdup(s);
|
||||
return temporary_directory;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue