From 038456b69bbcd1fe87a494cf531711e09223397c Mon Sep 17 00:00:00 2001 From: Peter Kokot Date: Fri, 26 Jun 2026 21:09:24 +0200 Subject: [PATCH] Remove redundant include The HAVE_LIBINTL macro is defined only when the ext/gettext is enabled during the build. Also, LC_MESSAGES have been moved to other places since this header was initially included. --- ext/standard/string.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/ext/standard/string.c b/ext/standard/string.c index 006adc4467d3..006ec3509a67 100644 --- a/ext/standard/string.c +++ b/ext/standard/string.c @@ -23,10 +23,6 @@ # include #endif -#ifdef HAVE_LIBINTL -# include /* For LC_MESSAGES */ -#endif - #include "scanf.h" #include "zend_API.h" #include "zend_execute.h" @@ -5763,7 +5759,7 @@ PHP_FUNCTION(substr_count) static void php_str_pad_fill(zend_string *result, size_t pad_chars, const char *pad_str, size_t pad_str_len) { char *p = ZSTR_VAL(result) + ZSTR_LEN(result); - + if (pad_str_len == 1) { memset(p, pad_str[0], pad_chars); ZSTR_LEN(result) += pad_chars; @@ -5778,7 +5774,7 @@ static void php_str_pad_fill(zend_string *result, size_t pad_chars, const char * if (p < end) { memcpy(p, pad_str, end - p); } - + ZSTR_LEN(result) += pad_chars; }