summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorDerick Rethans <derick@php.net>2011-01-12 19:50:09 +0000
committerDerick Rethans <derick@php.net>2011-01-12 19:50:09 +0000
commit58810bd055007d77948cb2614b98071cf38233e7 (patch)
treee53bd4549ab735d48db4a0b348753417bc32c136 /ext
parentc83278ef223a6153a070bc6cbd74c7ce421497fc (diff)
downloadphp-git-58810bd055007d77948cb2614b98071cf38233e7.tar.gz
- Fixed bug #53729 (DatePeriod fails to initialize recurrences on 64bit
big-endian systems). (Patch by rein@basefarm.no)
Diffstat (limited to 'ext')
-rw-r--r--ext/date/php_date.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/date/php_date.c b/ext/date/php_date.c
index ba6cf258ec..2e5986f8d2 100644
--- a/ext/date/php_date.c
+++ b/ext/date/php_date.c
@@ -3694,7 +3694,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;
@@ -3748,7 +3748,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);
}