From f872d3346c981c4fdab60afca0839ed36d96589c Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Wed, 7 Sep 2005 19:09:27 +0000 Subject: [PATCH] - Fix buglett with date() that cause truncated strings to be returned when Unicode is turned on. --- ext/date/php_date.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index ad5ffea94f..199e38f458 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -596,8 +596,12 @@ static void php_date(INTERNAL_FUNCTION_PARAMETERS, int localtime) } string = php_format_date(format, format_len, ts, localtime TSRMLS_CC); - - RETVAL_STRING(string, 0); + + if (UG(unicode)) { + RETVAL_UNICODE(string, 0); + } else { + RETVAL_STRING(string, 0); + } } /* }}} */ -- 2.50.1