From: Kalle Sommer Nielsen Date: Sun, 29 Mar 2015 05:14:54 +0000 (+0200) Subject: Drop this redundant check, since the minimum version of VC we support is VC11 (_MSC_V... X-Git-Tag: PRE_PHP7_NSAPI_REMOVAL~469 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=75e86b44fc18f7de628027ceec8f81770a0f610b;p=php Drop this redundant check, since the minimum version of VC we support is VC11 (_MSC_VER == 1700) in ext/date --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 40e471bc94..94d3a19bcd 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1671,7 +1671,7 @@ PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gmt) break; } } -#if defined(PHP_WIN32) && _MSC_VER >= 1700 +#ifdef PHP_WIN32 /* VS2012 strftime() returns number of characters, not bytes. See VC++11 bug id 766205. */ if (real_len > 0) {