com php-src: Add missing param to DatePeriod::__constru ct(): ext/date/php_date.stub.php ext/date/php _date_arginfo.h
| From: | Nikita Popov | Date: | Fri, 17 Jul 2020 08:46:11 +0000 |
| Subject: | com php-src: Add missing param to DatePeriod::__constru ct(): ext/date/php_date.stub.php ext/date/php _date_arginfo.h | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-112200@lists.php.net to get a copy of this message | ||
Commit: 81d8d6025087a341b63732b95a9015583c299e4c
Author: Nikita Popov <nikita.ppv@gmail.com> Fri, 17 Jul 2020 10:28:48 +0200
Parents: 6b2c4be48a7ed6eb6c4a1dea051bd01fc7fbed8c
Branches: master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=81d8d6025087a341b63732b95a9015583c299e4c
Log:
Add missing param to DatePeriod::__construct()
The signature is very overloaded, but takes at most four params,
not three.
Changed paths:
M ext/date/php_date.stub.php
M ext/date/php_date_arginfo.h
Diff:
diff --git a/ext/date/php_date.stub.php b/ext/date/php_date.stub.php
index c6a03ac715..ac5f2c9331 100644
--- a/ext/date/php_date.stub.php
+++ b/ext/date/php_date.stub.php
@@ -394,7 +394,7 @@ class DateInterval
class DatePeriod implements IteratorAggregate
{
/* Has an overloaded signature */
- public function __construct($start, $interval = UNKNOWN, $end = UNKNOWN) {}
+ public function __construct($start, $interval = UNKNOWN, $end = UNKNOWN, $options = UNKNOWN) {}
/** @return DateTimeInterface */
public function getStartDate() {}
diff --git a/ext/date/php_date_arginfo.h b/ext/date/php_date_arginfo.h
index 376d0b1453..158f3784e0 100644
--- a/ext/date/php_date_arginfo.h
+++ b/ext/date/php_date_arginfo.h
@@ -1,5 +1,5 @@
/* This is a generated file, edit the .stub.php file instead.
- * Stub hash: 656ce4aafb67dd9fc53d53081bb1a73c7a8b42d6 */
+ * Stub hash: d1a39515c3457e71f6a00d2bb406ad5c79564e7e */
ZEND_BEGIN_ARG_WITH_RETURN_TYPE_MASK_EX(arginfo_strtotime, 0, 1, MAY_BE_LONG|MAY_BE_FALSE)
ZEND_ARG_TYPE_INFO(0, time, IS_STRING, 0)
@@ -409,6 +409,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_class_DatePeriod___construct, 0, 0, 1)
ZEND_ARG_INFO(0, start)
ZEND_ARG_INFO(0, interval)
ZEND_ARG_INFO(0, end)
+ ZEND_ARG_INFO(0, options)
ZEND_END_ARG_INFO()
#define arginfo_class_DatePeriod_getStartDate arginfo_class_DateTimeInterface_getTimezone