Commit d8a976ed2b3 for php

commit d8a976ed2b321d413aad72f09d968f736f6f1323
Author: Weilin Du <weilindu@php.net>
Date:   Sat Oct 10 03:22:30 2026 +0800

    ext/readline: Remove redundant SAPI name length check

diff --git a/ext/readline/readline_cli.c b/ext/readline/readline_cli.c
index 3f435b82c78..89d378e2d7d 100644
--- a/ext/readline/readline_cli.c
+++ b/ext/readline/readline_cli.c
@@ -709,7 +709,7 @@ typedef cli_shell_callbacks_t *(__cdecl *get_cli_shell_callbacks)(void);
 		get_cli_shell_callbacks get_callbacks; \
 		HMODULE hMod = GetModuleHandle("php.exe"); \
 		(cb) = NULL; \
-		if (strlen(sapi_module.name) >= 3 && 0 == strncmp("cli", sapi_module.name, 3)) { \
+		if (0 == strncmp("cli", sapi_module.name, 3)) { \
 			get_callbacks = (get_cli_shell_callbacks)GetProcAddress(hMod, "php_cli_get_shell_callbacks"); \
 			if (get_callbacks) { \
 				(cb) = get_callbacks(); \