Re: [PHP-DEV] A validator module for PHP7

This is only part of a thread. view whole thread
  100411
September 6, 2017 11:52 lester@lsces.co.uk (Lester Caine)
On 06/09/17 12:15, Rowan Collins wrote:
> On 6 September 2017 09:29:37 BST, Lester Caine <lester@lsces.co.uk> wrote: >> My only problem with Yasuo's latest offering is once again it adds a >> whole new set of defines that have to be mapped to existing metadata >> definitions ... That and it is a lot of longhand code using a different >> style to existing arrays. We need yet another wrapper to build these >> arrays from existing code ... > The rules have to be defined somehow, and I'm not aware of a standard format that current code is likely to follow. Unless there is already such a standard, I can't see any way to avoid existing code having to be wrapped or amended. > > Which is why Yasuo and I have both suggested we work together to come up with such a standard format that can be used or adapted for these different parts of the application. If you have suggestions for how the format should look, we are eager to hear them and see some examples.
The likes of ADOdb datadict are still used as a base for metadata in projects, but PDO destroyed the standardisation that used to exist by spawning a number of competing wrappers. https://github.com/ADOdb/ADOdb has evolved from a private project to being supported by it's own community and is worth reconsidering as a proper cross database standard to build on. Validation rules simply build on that base. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
  100412
September 6, 2017 12:00 lists@rhsoft.net ("lists@rhsoft.net")
Am 06.09.2017 um 13:52 schrieb Lester Caine:
> The likes of ADOdb datadict are still used as a base for metadata in > projects, but PDO destroyed the standardisation that used to exist by > spawning a number of competing wrappers. https://github.com/ADOdb/ADOdb > has evolved from a private project to being supported by it's own > community and is worth reconsidering as a proper cross database standard > to build on. Validation rules simply build on that base
frankly - why don't you realize that input validation DOES NOT turn around databases at all - databases and SQL injection are *just one* subset of it and not every application works with databases at all
  100414
September 6, 2017 12:11 lester@lsces.co.uk (Lester Caine)
On 06/09/17 13:00, lists@rhsoft.net wrote:
> Am 06.09.2017 um 13:52 schrieb Lester Caine: >> The likes of ADOdb datadict are still used as a base for metadata in >> projects, but PDO destroyed the standardisation that used to exist by >> spawning a number of competing wrappers. https://github.com/ADOdb/ADOdb >> has evolved from a private project to being supported by it's own >> community and is worth reconsidering as a proper cross database standard >> to build on. Validation rules simply build on that base > > frankly - why don't you realize that input validation DOES NOT turn > around databases at all - databases and SQL injection are *just one* > subset of it and not every application works with databases at all
Metadata describing a data set should be standard across all interfaces. PHP has had standards on the database interfaces for a long time and writing different standards yet again for other interfaces is all I am objecting to. If you build metadata for a form that can then simply be dropped into the interface for a database or to pass into another storage method then it will be a lot more usable. -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk
  100416
September 6, 2017 12:41 rowan.collins@gmail.com (Rowan Collins)
On 6 September 2017 12:52:24 BST, Lester Caine <lester@lsces.co.uk> wrote:
>On 06/09/17 12:15, Rowan Collins wrote: >> On 6 September 2017 09:29:37 BST, Lester Caine <lester@lsces.co.uk> >wrote: >> Which is why Yasuo and I have both suggested we work together to come >up with such a standard format that can be used or adapted for these >different parts of the application. If you have suggestions for how the >format should look, we are eager to hear them and see some examples. > >The likes of ADOdb datadict are still used as a base for metadata in >projects
I'm going to cut you off there, and say this one more time: please can you show us an example of how you would like it to look. I have no idea what an "ADOdb datadict" is, so if that's what you're advocating, you'll need to show us what it looks like. Spare the commentary on what decisions we could have made differently 15 years ago, and concentrate on what we can do right now, specifically, for this particular piece of functionality. Thank you, -- Rowan Collins [IMSoP]