Re: Adding validate_var_array()/validate_input_array() to which version?
| From: | Christoph Becker | Date: | Mon, 01 Aug 2016 10:08:58 +0000 |
| Subject: | Re: Adding validate_var_array()/validate_input_array() to which version? | ||
| References: | 1 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-94776@lists.php.net to get a copy of this message | ||
On 01.08.2016 at 10:23, Yasuo Ohgaki wrote:
> We have filter_var_array()/filter_input_array() currently. They are
> designed as filter functions. i.e. They convert offending elements to
> NULL/FALSE. Therefore, it's difficult to validate and see if inputs
> are valid with specified specifications.
Maybe I'm missing something, but wouldn't a comparision of the original
array with the filtered array already suffice, see <https://3v4l.org/GlT49>?
--
Christoph M. Becker