From 21d084a1506c99e14909e2db7cf70515fee5d03a Mon Sep 17 00:00:00 2001 From: Hannes Magnusson Date: Tue, 19 May 2009 19:23:12 +0000 Subject: [PATCH] Partial fix for bug#48333 (DateInterval.format() expects a single, undocumented parameter) --- ext/date/php_date.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ext/date/php_date.c b/ext/date/php_date.c index 3c30e771e0..5f555b9b06 100644 --- a/ext/date/php_date.c +++ b/ext/date/php_date.c @@ -340,11 +340,13 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_date_interval_create_from_date_string, 0, 0, 1) ZEND_ARG_INFO(0, time) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_date_interval_format, 0, 0, 1) +ZEND_BEGIN_ARG_INFO_EX(arginfo_date_interval_format, 0, 0, 2) ZEND_ARG_INFO(0, object) + ZEND_ARG_INFO(0, format) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO(arginfo_date_method_interval_format, 0) + ZEND_ARG_INFO(0, format) ZEND_END_ARG_INFO() ZEND_BEGIN_ARG_INFO_EX(arginfo_date_period_construct, 0, 0, 3) -- 2.50.1