diff options
author | Derick Rethans <derick@php.net> | 2011-01-12 19:50:09 +0000 |
---|---|---|
committer | Derick Rethans <derick@php.net> | 2011-01-12 19:50:09 +0000 |
commit | 8e73b7080614b4e82177aa6faedb16b028f71937 (patch) | |
tree | 3a4c6e8ed35a0f021cda481f4e97eef833115600 | |
parent | a6a4751a88f9dec426a5bf95c605856bde22b719 (diff) | |
download | php-git-8e73b7080614b4e82177aa6faedb16b028f71937.tar.gz |
- Fixed bug #53729 (DatePeriod fails to initialize recurrences on 64bit
big-endian systems). (Patch by rein@basefarm.no)
-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 a7e0e692c4..b6a27d5dd1 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -3689,7 +3689,7 @@ PHP_FUNCTION(date_interval_format) } /* }}} */ -static int date_period_initialize(timelib_time **st, timelib_time **et, timelib_rel_time **d, int *recurrences, /*const*/ char *format, int format_length TSRMLS_DC) +static int date_period_initialize(timelib_time **st, timelib_time **et, timelib_rel_time **d, long *recurrences, /*const*/ char *format, int format_length TSRMLS_DC) { timelib_time *b = NULL, *e = NULL; timelib_rel_time *p = NULL; @@ -3743,7 +3743,7 @@ PHP_METHOD(DatePeriod, __construct) dpobj->current = NULL; if (isostr_len) { - date_period_initialize(&(dpobj->start), &(dpobj->end), &(dpobj->interval), (int*) &recurrences, isostr, isostr_len TSRMLS_CC); + date_period_initialize(&(dpobj->start), &(dpobj->end), &(dpobj->interval), &recurrences, isostr, isostr_len TSRMLS_CC); if (dpobj->start == NULL) { php_error_docref(NULL TSRMLS_CC, E_WARNING, "The ISO interval '%s' did not contain a start date.", isostr); } |