diff options
-rw-r--r-- | ext/com_dotnet/com_wrapper.c | 2 | ||||
-rw-r--r-- | win32/sendmail.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/ext/com_dotnet/com_wrapper.c b/ext/com_dotnet/com_wrapper.c index 5318011e44..c4f41a4916 100644 --- a/ext/com_dotnet/com_wrapper.c +++ b/ext/com_dotnet/com_wrapper.c @@ -497,7 +497,7 @@ static void generate_dispids(php_dispatchex *disp) char namebuf[32]; if (keytype == HASH_KEY_IS_LONG) { - snprintf(namebuf, sizeof(namebuf), "%d", pid); + snprintf(namebuf, sizeof(namebuf), ZEND_ULONG_FMT, pid); name = zend_string_init(namebuf, strlen(namebuf), 0); } else { zend_string_addref(name); diff --git a/win32/sendmail.c b/win32/sendmail.c index 9e31028d58..c0d5cf00e0 100644 --- a/win32/sendmail.c +++ b/win32/sendmail.c @@ -270,7 +270,7 @@ PHPAPI int TSendMail(char *host, int *error, char **error_message, /* 128 is safe here, the specifier in snprintf isn't longer than that */ *error_message = ecalloc(1, HOST_NAME_LEN + 128); snprintf(*error_message, HOST_NAME_LEN + 128, - "Failed to connect to mailserver at \"%s\" port %d, verify your \"SMTP\" " + "Failed to connect to mailserver at \"%s\" port " ZEND_ULONG_FMT ", verify your \"SMTP\" " "and \"smtp_port\" setting in php.ini or use ini_set()", PW32G(mail_host), !INI_INT("smtp_port") ? 25 : INI_INT("smtp_port")); return FAILURE; |