From d932c37ea2d268e9c3f967daf34039d0d895dfeb Mon Sep 17 00:00:00 2001 From: Derick Rethans Date: Thu, 29 Dec 2005 10:56:17 +0000 Subject: [PATCH] - MFH: Fixed bug #35751 (using date with a timestamp makes httpd segfault). --- ext/date/php_date.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.50.1