Skip to content

Commit c264679

Browse files
authored
Remove braces around string initializers (#phpGH-17451)
While MSVC is apparently fine with that, Clang complains about it (`-Wbraced-scalar-init`).
1 parent e6f42c1 commit c264679

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

win32/sendmail.c

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -65,28 +65,28 @@ char *php_mailer = "PHP 7 WIN32";
6565
/* Error messages */
6666
static char *ErrorMessages[] =
6767
{
68-
{"Success"}, /* 0 */
69-
{"Bad arguments from form"}, /* 1 */
70-
{"Unable to open temporary mailfile for read"},
71-
{"Failed to Start Sockets"},
72-
{"Failed to Resolve Host"},
73-
{"Failed to obtain socket handle"}, /* 5 */
74-
{"Failed to connect to mailserver, verify your \"SMTP\" setting in php.ini"},
75-
{"Failed to Send"},
76-
{"Failed to Receive"},
77-
{"Server Error"},
78-
{"Failed to resolve the host IP name"}, /* 10 */
79-
{"Out of memory"},
80-
{"Unknown error"},
81-
{"Bad Message Contents"},
82-
{"Bad Message Subject"},
83-
{"Bad Message destination"}, /* 15 */
84-
{"Bad Message Return Path"},
85-
{"Bad Mail Host"},
86-
{"Bad Message File"},
87-
{"\"sendmail_from\" not set in php.ini or custom \"From:\" header missing"},
88-
{"Mailserver rejected our \"sendmail_from\" setting"}, /* 20 */
89-
{"Error while trimming mail header with PCRE, please file a bug report at https://github.com/php/php-src/issues"} /* 21 */
68+
"Success", /* 0 */
69+
"Bad arguments from form", /* 1 */
70+
"Unable to open temporary mailfile for read",
71+
"Failed to Start Sockets",
72+
"Failed to Resolve Host",
73+
"Failed to obtain socket handle", /* 5 */
74+
"Failed to connect to mailserver, verify your \"SMTP\" setting in php.ini",
75+
"Failed to Send",
76+
"Failed to Receive",
77+
"Server Error",
78+
"Failed to resolve the host IP name", /* 10 */
79+
"Out of memory",
80+
"Unknown error",
81+
"Bad Message Contents",
82+
"Bad Message Subject",
83+
"Bad Message destination", /* 15 */
84+
"Bad Message Return Path",
85+
"Bad Mail Host",
86+
"Bad Message File",
87+
"\"sendmail_from\" not set in php.ini or custom \"From:\" header missing",
88+
"Mailserver rejected our \"sendmail_from\" setting", /* 20 */
89+
"Error while trimming mail header with PCRE, please file a bug report at https://github.com/php/php-src/issues" /* 21 */
9090
};
9191

9292
/* This pattern converts all single occurrences of \n (Unix)

0 commit comments

Comments
 (0)