From: Nikita Popov Date: Wed, 28 May 2014 16:39:41 +0000 (+0200) Subject: Use smart_str_append_long in implode X-Git-Tag: POST_PHPNG_MERGE~250 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=bf5a59d281f5c799b4183746906779303c61296b;p=php Use smart_str_append_long in implode --- diff --git a/ext/standard/string.c b/ext/standard/string.c index 913d5b3af7..674bd588b9 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -1139,11 +1139,8 @@ again: smart_str_appendl(&implstr, Z_STRVAL_P(tmp), Z_STRLEN_P(tmp)); break; - case IS_LONG: { - char stmp[MAX_LENGTH_OF_LONG + 1]; - str_len = slprintf(stmp, sizeof(stmp), "%ld", Z_LVAL_P(tmp)); - smart_str_appendl(&implstr, stmp, str_len); - } + case IS_LONG: + smart_str_append_long(&implstr, Z_LVAL_P(tmp)); break; case IS_TRUE: