From e20baee1366535f7758d8ac421821fd1e1f19e90 Mon Sep 17 00:00:00 2001 From: Tyson Andre Date: Sun, 12 Aug 2018 17:51:13 -0400 Subject: [PATCH] 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. --- NEWS | 3 +++ ext/bz2/bz2.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 30140a5491..6d84a8d4d8 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 6cd7823281..d30be8ae97 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) -- 2.40.0