From c557c410af5bd039175e531769d8882e486bcd62 Mon Sep 17 00:00:00 2001 From: Nikita Popov Date: Mon, 24 Aug 2020 17:30:31 +0200 Subject: [PATCH] Drop a spurious zend_string_release This should have been dropped in the refactoring. --- ext/standard/string.c | 1 - 1 file changed, 1 deletion(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index c61d991112..b8572671fa 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -4651,7 +4651,6 @@ static zend_string *try_setlocale_str(zend_long cat, zend_string *loc) { if (len == 1 && *retval == 'C') { /* C locale is represented as NULL. */ BG(ctype_string) = NULL; - zend_string_release_ex(loc, 0); return ZSTR_CHAR('C'); } else if (len == ZSTR_LEN(loc) && !memcmp(ZSTR_VAL(loc), retval, len)) { BG(ctype_string) = zend_string_copy(loc); -- 2.50.1