Commit d3af7240d9a for php.net

commit d3af7240d9a81ff729b6208958df63c109cfa811
Author: Shivam Mathur <shivam_jpr@hotmail.com>
Date:   Wed Aug 5 12:27:48 2026 +0530

    Fix hMailServer URL in Windows CI (#23055)

diff --git a/.github/scripts/windows/test_task.bat b/.github/scripts/windows/test_task.bat
index 0bfdaf66412..199a23430f5 100644
--- a/.github/scripts/windows/test_task.bat
+++ b/.github/scripts/windows/test_task.bat
@@ -116,8 +116,9 @@ set PHP_BUILD_DIR=%PHP_BUILD_OBJ_DIR%\Release
 if "%THREAD_SAFE%" equ "1" set PHP_BUILD_DIR=%PHP_BUILD_DIR%_TS

 rem prepare for mail
-curl -sLo hMailServer.exe https://www.hmailserver.com/download_file/?downloadid=271
-hMailServer.exe /verysilent
+curl -sLo hMailServer.zip https://downloads.php.net/~windows/php-sdk/deps/vs18/x64/hmailserver-5.7.0-vs18-x64.zip
+unzip -q hMailServer.zip -d hMailServer
+hMailServer\bin\hMailServer.exe /verysilent
 cd %APPVEYOR_BUILD_FOLDER%
 %PHP_BUILD_DIR%\php.exe -dextension_dir=%PHP_BUILD_DIR% -dextension=com_dotnet appveyor\setup_hmailserver.php

diff --git a/ext/standard/tests/mail/bug80751.phpt b/ext/standard/tests/mail/bug80751.phpt
index fd4fa744fe3..97cb0575f82 100644
--- a/ext/standard/tests/mail/bug80751.phpt
+++ b/ext/standard/tests/mail/bug80751.phpt
@@ -37,7 +37,7 @@ function find_and_delete_message($username, $subject) {
             if ($info->subject === $subject) {
                 $header = imap_fetchheader($imap_stream, $i);
                 echo "Return-Path header found: ";
-                var_dump(strpos($header, 'Return-Path: joe@example.com') !== false);
+                var_dump(strpos($header, 'Return-Path: <joe@example.com>') !== false);
                 echo "To header found: ";
                 var_dump(strpos($header, "To: \"<bob@example.com>\" <{$users[1]}@$domain>") !== false);
                 echo "From header found: ";