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

diff --git a/NEWS b/NEWS
index ef73c34c30a931a1b85d69fc72c74100b41447c2..fcf35e13b264a74b27a9e77cded091695300f733 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -14,6 +14,7 @@ PHP                                                                        NEWS
 - Fixed bug #35781 (stream_filter_append() can cause segfault). (Tony)
 - Fixed bug #35759 (mysqli_stmt_bind_result() makes huge allocation when
   column empty). (Andrey)
+- Fixed bug #35751 (using date with a timestamp makes httpd segfault). (Derick)
 - Fixed bug #35517 (mysql_stmt_fetch returns NULL on data truncation). (Georg)
 - Fixed bug #29955 (mb_strtoupper() / lower() broken with Turkish encoding).
   (Rui)
index a4cf8202ca6bc7526daf1d9d14ada10a7eeda3c0..cbc5a5dec87d21da22bc6d5e40ac0edca8bb5a92 100644 (file)
@@ -561,7 +561,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) {
@@ -721,7 +721,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) {