com php-src: fix build: ext/date/php_date.c
| From: | Pierre Joye | Date: | Thu, 15 May 2014 07:38:26 +0000 |
| Subject: | com php-src: fix build: ext/date/php_date.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-78361@lists.php.net to get a copy of this message | ||
Commit: 6a3ee297853aaf4fa17d0259fb8d0768bc143d02
Author: Pierre Joye <pierre.php@gmail.com> Thu, 15 May 2014 09:38:26 +0200
Parents: 89a6d2bc53fb83e59a2fe8ac0b5ece641980a7ea
Branches: phpng
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=6a3ee297853aaf4fa17d0259fb8d0768bc143d02
Log:
fix build
Changed paths:
M ext/date/php_date.c
Diff:
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index 31cb41a..3d203eb 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