8000 bug #40919 [Mailer] use correct spelling when accessing the SMTP php.… · symfony/symfony@f1ac7a8 · GitHub
[go: up one dir, main page]

Skip to content

Commit f1ac7a8

Browse files
committed
bug #40919 [Mailer] use correct spelling when accessing the SMTP php.ini value (xabbuh)
This PR was merged into the 5.2 branch. Discussion ---------- [Mailer] use correct spelling when accessing the SMTP php.ini value | Q | A | ------------- | --- | Branch? | 5.2 | Bug fix? | yes | New feature? | no | Deprecations? | no | Tickets | Fix #40899 | License | MIT | Doc PR | Commits ------- b6f8ed6 use correct spelling when accessing the SMTP php.ini value
2 parents d4844ef + b6f8ed6 commit f1ac7a8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Symfony/Component/Mailer/Tests/Transport/NativeTransportFactoryTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ public function testCreate(string $dsn, string $sendmailPath, string $smtp, stri
111111
{
112112
self::$fakeConfiguration = [
113113
'sendmail_path' => $sendmailPath,
114-
'smtp' => $smtp,
114+
'SMTP' => $smtp,
115115
'smtp_port' => $smtpPort,
116116
];
117117

src/Symfony/Component/Mailer/Transport/NativeTransportFactory.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function create(Dsn $dsn): TransportInterface
3939

4040
// Only for windows hosts; at this point non-windows
4141
// host have already thrown an exception or returned a transport
42-
$host = ini_get('smtp');
42+
$host = ini_get('SMTP');
4343
$port = (int) ini_get('smtp_port');
4444

4545
if (!$host || !$port) {

0 commit comments

Comments
 (0)
0