]> granicus.if.org Git - php/commitdiff
brought back that vs2012 fix
authorAnatol Belski <ab@php.net>
Tue, 19 Aug 2014 07:37:38 +0000 (09:37 +0200)
committerAnatol Belski <ab@php.net>
Tue, 19 Aug 2014 07:37:38 +0000 (09:37 +0200)
ext/date/php_date.c

index 6cea2af048e0a1e61eeffb05158569a941b997e5..b611a911b0a2a842247d19fd9ce4ee9ea78956b9 100644 (file)
@@ -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