fix for array_map arg info

From: Date: Thu, 18 Jun 2009 19:57:30 +0000
Subject: fix for array_map arg info
Groups: php.internals 
Request: Send a blank email to internals+get-44364@lists.php.net to get a copy of this message
Hi, The arg info for array_map appears to be incorrect. It lists 3 arguments as required, when in fact there are only 2 required. Attached is a small patch to fix it. Regards, Matthew

Index: basic_functions.c =================================================================== RCS file: /repository/php-src/ext/standard/basic_functions.c,v retrieving revision 1.725.2.31.2.64.2.91 diff -u -r1.725.2.31.2.64.2.91 basic_functions.c --- basic_functions.c 15 Jun 2009 08:32:38 -0000 1.725.2.31.2.64.2.91 +++ basic_functions.c 18 Jun 2009 19:14:02 -0000 @@ -589,10 +589,9 @@ ZEND_ARG_INFO(0, callback) ZEND_END_ARG_INFO() -ZEND_BEGIN_ARG_INFO_EX(arginfo_array_map, 0, 0, 3) +ZEND_BEGIN_ARG_INFO_EX(arginfo_array_map, 0, 0, 2) ZEND_ARG_INFO(0, callback) - ZEND_ARG_INFO(0, arg1) /* ARRAY_INFO(0, arg1, 0) */ - ZEND_ARG_INFO(0, arg2) /* ARRAY_INFO(0, arg2, 0) */ + ZEND_ARG_INFO(0, arr) /* ARRAY_INFO(0, arr, 0) */ ZEND_ARG_INFO(0, ...) ZEND_END_ARG_INFO()
« previous php.internals (#44364) next »