From: Derick Rethans Date: Thu, 29 Dec 2005 10:56:17 +0000 (+0000) Subject: - MFH: Fixed bug #35751 (using date with a timestamp makes httpd segfault). X-Git-Tag: RELEASE_1_0_4~197 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d932c37ea2d268e9c3f967daf34039d0d895dfeb;p=php - MFH: Fixed bug #35751 (using date with a timestamp makes httpd segfault). --- diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 4089ce54b8..54fb665297 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -674,7 +674,7 @@ static void php_date(INTERNAL_FUNCTION_PARAMETERS, int localtime) { char *format; int format_len; - time_t ts; + long ts; char *string; if (ZEND_NUM_ARGS() == 1) { @@ -839,7 +839,7 @@ PHP_FUNCTION(idate) { char *format; int format_len; - time_t ts; + long ts; int ret; if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &format, &format_len, &ts) == FAILURE) {