]> granicus.if.org Git - php/commitdiff
Fix #75878: RecursiveTreeIterator::setPostfix has wrong signature
authorChristoph M. Becker <cmbecker69@gmx.de>
Sat, 27 Jan 2018 11:33:36 +0000 (12:33 +0100)
committerChristoph M. Becker <cmbecker69@gmx.de>
Sat, 27 Jan 2018 11:33:36 +0000 (12:33 +0100)
NEWS
ext/spl/spl_iterators.c

diff --git a/NEWS b/NEWS
index d14b616a64ccb4d1c4f10406deeba28c1805f37a..40fc8e861ac79a0f48ec916fd4f35bf044feacd5 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -8,6 +8,10 @@ PHP                                                                        NEWS
 - ODBC:
   . Fixed bug #73725 (Unable to retrieve value of varchar(max) type). (Anatol)
 
+- SPL:
+  . Fixed bug #75878 (RecursiveTreeIterator::setPostfix has wrong signature).
+    (cmb)
+
 01 Feb 2018, PHP 7.1.14
 
 - Core:
index db6896965ad0c79b9e5536028a58bc3ee61f6c39..1b38cc0ff27590713d263d2165d2bfc6d716d4ad 100644 (file)
@@ -1328,6 +1328,10 @@ ZEND_BEGIN_ARG_INFO_EX(arginfo_recursive_tree_it_setPrefixPart, 0, 0, 2)
        ZEND_ARG_INFO(0, value)
 ZEND_END_ARG_INFO();
 
+ZEND_BEGIN_ARG_INFO_EX(arginfo_recursive_tree_it_setPostfix, 0, 0, 1)
+       ZEND_ARG_INFO(0, postfix)
+ZEND_END_ARG_INFO();
+
 static const zend_function_entry spl_funcs_RecursiveTreeIterator[] = {
        SPL_ME(RecursiveTreeIterator,     __construct,       arginfo_recursive_tree_it___construct,   ZEND_ACC_PUBLIC)
        SPL_ME(RecursiveIteratorIterator, rewind,            arginfo_recursive_it_void,               ZEND_ACC_PUBLIC)
@@ -1345,7 +1349,7 @@ static const zend_function_entry spl_funcs_RecursiveTreeIterator[] = {
        SPL_ME(RecursiveTreeIterator,     getPrefix,         arginfo_recursive_it_void,               ZEND_ACC_PUBLIC)
        SPL_ME(RecursiveTreeIterator,     setPrefixPart,     arginfo_recursive_tree_it_setPrefixPart, ZEND_ACC_PUBLIC)
        SPL_ME(RecursiveTreeIterator,     getEntry,          arginfo_recursive_it_void,               ZEND_ACC_PUBLIC)
-       SPL_ME(RecursiveTreeIterator,     setPostfix,        arginfo_recursive_it_void,               ZEND_ACC_PUBLIC)
+       SPL_ME(RecursiveTreeIterator,     setPostfix,        arginfo_recursive_tree_it_setPostfix,               ZEND_ACC_PUBLIC)
        SPL_ME(RecursiveTreeIterator,     getPostfix,        arginfo_recursive_it_void,               ZEND_ACC_PUBLIC)
        PHP_FE_END
 };