summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTyson Andre <tysonandre775@hotmail.com>2018-08-13 08:44:33 -0400
committerChristoph M. Becker <cmbecker69@gmx.de>2018-08-13 16:09:32 +0200
commitdcd4b321859cdf494cb85ac937ad6339121a8c29 (patch)
tree0b04348da160d05395819813edbd9eb9c5084a55
parent8270c7d94723adf05df44267a4a04a22079577d0 (diff)
downloadphp-git-dcd4b321859cdf494cb85ac937ad6339121a8c29.tar.gz
Fix arginfo for tidy::__construct()
This was split out of PR #3439 Previously, the arginfo was wrong for these methods. getNumberOfRequiredParameters() was 4 for that method. Compare with http://php.net/manual/en/tidy.construct.php) This fixes the arginfo added to PHP 7.3 in 97353cda99
-rw-r--r--NEWS3
-rw-r--r--ext/tidy/tidy.c2
2 files changed, 4 insertions, 1 deletions
diff --git a/NEWS b/NEWS
index bf3cb8c6c3..767f78aa9c 100644
--- a/NEWS
+++ b/NEWS
@@ -30,6 +30,9 @@ PHP NEWS
. Fixed bug #76713 (Segmentation fault caused by property corruption).
(Laruence)
+- Tidy:
+ . Fixed arginfo for tidy::__construct(). (Tyson Andre)
+
- zlib:
. Fixed bug #65988 (Zlib version check fails when an include/zlib/ style dir
is passed to the --with-zlib configure option). (Jay Bonci)
diff --git a/ext/tidy/tidy.c b/ext/tidy/tidy.c
index b531c9c92f..0fde23cb11 100644
--- a/ext/tidy/tidy.c
+++ b/ext/tidy/tidy.c
@@ -396,7 +396,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_body, 0, 0, 1)
ZEND_ARG_INFO(0, tidy)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO(arginfo_tidy_construct, 0)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_construct, 0, 0, 0)
ZEND_ARG_INFO(0, filename)
ZEND_ARG_INFO(0, config_file)
ZEND_ARG_INFO(0, encoding)