note 118607 rejected from function.filter-input-array by salathe
| From: | salathe@php.net | Date: | Fri, 08 Jan 2016 09:14:11 +0000 |
| Subject: | note 118607 rejected from function.filter-input-array by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-204615@lists.php.net to get a copy of this message | ||
Note Submitter: jurchiks101 at gmail dot com
----
The documentation is wrong; $definition is a required parameter:
https://github.com/php/php-src/blob/master/ext/filter/filter.c#L98
The last parameter to ZEND_BEGIN_ARG_INFO_EX is called "required_num_args".
As you can see, it is set to 2 there, so the first two parameters are required.