1
0
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:
Xinchen Hui
2015-01-22 16:55:20 +08:00
parent 201f660ae1
commit 6ae57df70b
+1 -1
View File
@@ -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);