From 6a3ee297853aaf4fa17d0259fb8d0768bc143d02 Mon Sep 17 00:00:00 2001 From: Pierre Joye Date: Thu, 15 May 2014 09:38:26 +0200 Subject: [PATCH] fix build --- ext/date/php_date.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 31cb41adfd..3d203eb227 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -1694,7 +1694,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 = strlen(buf); + real_len = buf->len; } #endif -- 2.50.1