Skip to content

Commit dcd4b32

Browse files
TysonAndrecmb69
authored andcommitted
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 97353cd
1 parent 8270c7d commit dcd4b32

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

NEWS

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ PHP NEWS
3030
. Fixed bug #76713 (Segmentation fault caused by property corruption).
3131
(Laruence)
3232

33+
- Tidy:
34+
. Fixed arginfo for tidy::__construct(). (Tyson Andre)
35+
3336
- zlib:
3437
. Fixed bug #65988 (Zlib version check fails when an include/zlib/ style dir
3538
is passed to the --with-zlib configure option). (Jay Bonci)

ext/tidy/tidy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,7 +396,7 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_get_body, 0, 0, 1)
396396
ZEND_ARG_INFO(0, tidy)
397397
ZEND_END_ARG_INFO()
398398

399-
ZEND_BEGIN_ARG_INFO(arginfo_tidy_construct, 0)
399+
ZEND_BEGIN_ARG_INFO_EX(arginfo_tidy_construct, 0, 0, 0)
400400
ZEND_ARG_INFO(0, filename)
401401
ZEND_ARG_INFO(0, config_file)
402402
ZEND_ARG_INFO(0, encoding)

0 commit comments

Comments
 (0)