com php-src: Fix arginfo for bzcompress: NEWS ext/bz2/bz2.c
| From: | Christoph Michael Becker | Date: | Mon, 13 Aug 2018 13:59:08 +0000 |
| Subject: | com php-src: Fix arginfo for bzcompress: NEWS ext/bz2/bz2.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-102870@lists.php.net to get a copy of this message | ||
Commit: e20baee1366535f7758d8ac421821fd1e1f19e90
Author: Tyson Andre <tysonandre775@hotmail.com> Sun, 12 Aug 2018 17:51:13 -0400
Committer: Christoph M. Becker <cmbecker69@gmx.de> Mon, 13 Aug 2018 15:59:08 +0200
Parents: 859f7fce1f940b7ea44c32eafb36cd5e22d37176
Branches: PHP-7.1 PHP-7.2 PHP-7.3 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=e20baee1366535f7758d8ac421821fd1e1f19e90
Log:
Fix arginfo for bzcompress
bzcompress() has 1 required parameter, not 2.
See http://php.net/manual/en/function.bzcompress.php
or invoke
bzcompress with 1 parameter.
Changed paths:
M NEWS
M ext/bz2/bz2.c
Diff:
diff --git a/NEWS b/NEWS
index 30140a5..6d84a8d 100644
--- a/NEWS
+++ b/NEWS
@@ -5,6 +5,9 @@ PHP NEWS
- Core:
. Fixed bug #72443 (Generate enabled extension). (petk)
+- Bz2:
+ . Fixed arginfo for bzcompress. (Tyson Andre)
+
- gettext:
. Fixed bug #76517 (incorrect restoring of LDFLAGS). (sji)
diff --git a/ext/bz2/bz2.c b/ext/bz2/bz2.c
index 6cd7823..d30be8a 100644
--- a/ext/bz2/bz2.c
+++ b/ext/bz2/bz2.c
@@ -75,7 +75,7 @@ ZEND_BEGIN_ARG_INFO(arginfo_bzerror, 0)
ZEND_ARG_INFO(0, bz)
ZEND_END_ARG_INFO()
-ZEND_BEGIN_ARG_INFO_EX(arginfo_bzcompress, 0, 0, 2)
+ZEND_BEGIN_ARG_INFO_EX(arginfo_bzcompress, 0, 0, 1)
ZEND_ARG_INFO(0, source)
ZEND_ARG_INFO(0, blocksize)
ZEND_ARG_INFO(0, workfactor)