Commit 5ff2a95341a for php.net

commit 5ff2a95341a692a86646292317d61c63c96d5ca4
Author: Peter Kokot <peterkokot@gmail.com>
Date:   Sat Jun 27 18:36:21 2026 +0200

    Remove redundant <libintl.h> include (#22477)

    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.

diff --git a/ext/standard/string.c b/ext/standard/string.c
index 006adc4467d..006ec3509a6 100644
--- a/ext/standard/string.c
+++ b/ext/standard/string.c
@@ -23,10 +23,6 @@
 # include <langinfo.h>
 #endif

-#ifdef HAVE_LIBINTL
-# include <libintl.h> /* 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;
 }