- 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,8 +597,12 @@ static void php_date(INTERNAL_FUNCTION_PARAMETERS, int localtime)
string = php_format_date(format, format_len, ts, localtime TSRMLS_CC);
if (UG(unicode)) {
RETVAL_UNICODE(string, 0);
} else {
RETVAL_STRING(string, 0);
}
}
/* }}} */
PHPAPI char *php_format_date(char *format, int format_len, time_t ts, int localtime TSRMLS_DC) /* {{{ */