diff options
author | Derick Rethans <derick@php.net> | 2005-12-29 10:56:17 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2005-12-29 10:56:17 +0000 |
commit | d932c37ea2d268e9c3f967daf34039d0d895dfeb (patch) | |
tree | da2bb818353cb24447989cf219f66f8082c72ff2 | |
parent | 10f8c95d724d9a068e788e17a328a12d070caee5 (diff) | |
download | php-git-d932c37ea2d268e9c3f967daf34039d0d895dfeb.tar.gz |
- MFH: Fixed bug #35751 (using date with a timestamp makes httpd segfault).
-rw-r--r-- | ext/date/php_date.c | 4 |
1 files 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) { |