- Fix buglett with date() that cause truncated strings to be returned when

Unicode is turned on.
This commit is contained in:
Derick Rethans 2005-09-07 19:09:27 +00:00
parent 7eeb91187b
commit f872d3346c

View file

@ -597,7 +597,11 @@ 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);
}
}
/* }}} */