From: Anatol Belski Date: Tue, 19 Aug 2014 07:37:38 +0000 (+0200) Subject: brought back that vs2012 fix X-Git-Tag: PRE_64BIT_BRANCH_MERGE~38 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d4f463cf0830de08c2b08557194883181a91fb08;p=php brought back that vs2012 fix --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 6cea2af048..b611a911b0 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1698,7 +1698,7 @@ PHPAPI void php_strftime(INTERNAL_FUNCTION_PARAMETERS, int gmt) /* VS2012 strftime() returns number of characters, not bytes. See VC++11 bug id 766205. */ if (real_len > 0) { - real_len = buf->len; + real_len = strlen(buf->val); } #endif