mirror of
https://github.com/php/php-src.git
synced 2026-04-29 11:13:36 +02:00
Revert "Fixed valgrind reported issue with setlocale"
This reverts commit fa06343d7e.
This commit is contained in:
@@ -4550,7 +4550,7 @@ PHP_FUNCTION(setlocale)
|
||||
}
|
||||
if (len == loc->len && !memcmp(loc->val, retval, len)) {
|
||||
BG(locale_string) = zend_string_copy(loc);
|
||||
RETURN_STR(zend_string_copy(BG(locale_string)));
|
||||
RETURN_STR(BG(locale_string));
|
||||
} else {
|
||||
BG(locale_string) = zend_string_init(retval, len, 0);
|
||||
zend_string_release(loc);
|
||||
|
||||
Reference in New Issue
Block a user