php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Return to Bug #53729
Patch bug53729.patch revision 2011-01-12 19:44 UTC by rein at basefarm dot no

Patch bug53729.patch for Date/time related Bug #53729

Patch version 2011-01-12 19:44 UTC

Return to Bug #53729 | Download this patch
Patch Revisions:

Developer: rein@basefarm.no

Index: ext/date/php_date.c
===================================================================
RCS file: /f/CVSROOT/drift/www/php/ext/date/php_date.c,v
retrieving revision 1.1.1.13
retrieving revision 1.2
diff -u -u -r1.1.1.13 -r1.2
--- ext/date/php_date.c	6 Jan 2011 15:19:40 -0000	1.1.1.13
+++ ext/date/php_date.c	12 Jan 2011 19:17:58 -0000	1.2
@@ -3669,7 +3669,7 @@
 }
 /* }}} */
 
-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;
@@ -3723,7 +3723,7 @@
 	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);
 		}
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Thu Apr 25 21:01:36 2024 UTC