summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPierre Joye <pierre.php@gmail.com>2014-05-15 09:38:26 +0200
committerPierre Joye <pierre.php@gmail.com>2014-05-15 09:38:26 +0200
commit6a3ee297853aaf4fa17d0259fb8d0768bc143d02 (patch)
tree4974a3a7236a39a80cd7b465bb1af69f439737c7
parent89a6d2bc53fb83e59a2fe8ac0b5ece641980a7ea (diff)
downloadphp-git-6a3ee297853aaf4fa17d0259fb8d0768bc143d02.tar.gz
fix build
-rw-r--r--ext/date/php_date.c2
1 files changed, 1 insertions, 1 deletions
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