]> granicus.if.org Git - php/commitdiff
- MFH: Fixed bug #35751 (using date with a timestamp makes httpd segfault).
authorDerick Rethans <derick@php.net>
Thu, 29 Dec 2005 10:56:17 +0000 (10:56 +0000)
committerDerick Rethans <derick@php.net>
Thu, 29 Dec 2005 10:56:17 +0000 (10:56 +0000)
ext/date/php_date.c

index 4089ce54b8063ab1a5cebe362420589cfc42bbf6..54fb665297c683a91cc38a3e294305d76c1b4ac8 100644 (file)
@@ -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) {