Re: A validator module for PHP7
| From: | Yasuo Ohgaki | Date: | Mon, 11 Sep 2017 21:39:30 +0000 |
| Subject: | Re: A validator module for PHP7 | ||
| References: | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-100526@lists.php.net to get a copy of this message | ||
Hi,
On Tue, Sep 12, 2017 at 6:35 AM, lists@rhsoft.net <lists@rhsoft.net> wrote:
>
> Am 11.09.2017 um 23:07 schrieb Yasuo Ohgaki
>
>> On Tue, Sep 12, 2017 at 12:22 AM, Stephen Reay <php-lists@koalephant.com>
>>
>>> So, you still didn’t actually provide an example. I *guess* you’re
>>> talking
>>> about character class validation or something else equally “simple”,
>>> because I can’t imagine what else would be a common enough case that
>>> you’d
>>> want to have built-in rules for, and that you wouldn’t internally use
>>> RegExp to test anyway.
>>>
>>
>> Your request is like "Devil's Proof". Example code that cannot do things
>> with existing API cannot exist with meaningful manner. It can be explained
>> why it cannot, though. Try what "validate" string validator can do,
>> Then you'll see.
>>
>> There is no STRING validation filter currently. This fact alone,
>> it could be said "filter cannot do string validation currently".
>>
>> List of problems in current validation filter
>>
> but you still fail to explain why in the world you don#t try to enhance
> the existing filter functions instead invent a new beast leading finally to
> have the existin filter functions and your new stuff which share the same
> intention
>
>
Why don't you read previous RFC and the vote result?
https://wiki.php.net/rfc/add_validate_functions_to_filter
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net