Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-14 Thread Lester Caine
s seem that there is no drive these days to make the core a clean UTF8 environment. This should perhaps be addressed again for PHP8? But the additional problems that case-insensitive then introduces may mean that all case-insensitivity has to be removed at that point? -- Lester Caine -

Re: [PHP-DEV] Deprecate and remove case-insensitive constants?

2017-09-13 Thread Lester Caine
g an RTTY as the keyboard and printer. No one had invented the shift key and the 5 bit character set was easy to work with. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.c

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

2017-09-07 Thread Lester Caine
variable by variable once one has established that there IS a valid set of variables to work with. -- 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 Digita

Re: [PHP-DEV] Providing built-in functionality written in PHP (was RE: [PHP-DEV] [VOTE] UUID)

2017-09-06 Thread Lester Caine
eate additional UUID like variables and validate that the supplied data to populate hem is correct. -- 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 En

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

2017-09-06 Thread Lester Caine
On 06/09/17 13:00, li...@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 wrapper

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

2017-09-06 Thread Lester Caine
On 06/09/17 12:15, Rowan Collins wrote: > On 6 September 2017 09:29:37 BST, Lester Caine <les...@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 me

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

2017-09-06 Thread Lester Caine
finitions ... 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 ... -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electroni

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

2017-09-05 Thread Lester Caine
se which databases are slowly evolving towards. -- 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 Rai

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

2017-09-05 Thread Lester Caine
as all about 15 years ago and nothing much has changed since ... and annotating that data in the code ... -- 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 Engineer

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

2017-09-05 Thread Lester Caine
On 05/09/17 14:08, li...@rhsoft.net wrote: > > > Am 05.09.2017 um 13:36 schrieb Lester Caine: >> On 05/09/17 12:18, Yasuo Ohgaki wrote: >>> I cannot guess people's thought. I appreciated feedback! >> >> With a decent database layer a lot of the validation you

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

2017-09-05 Thread Lester Caine
ust adding to the current mess ... -- 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 Digi

Re: [PHP-DEV] Matching PDO_SQLite features with SQLite3 extension

2017-08-23 Thread Lester Caine
e PDO at all in that instance? For example a BLOB improvement to PDO should work transparently across all databases that support blobs ... and error when blobs are not available. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electro

Re: [PHP-DEV] php.net website

2017-07-21 Thread Lester Caine
needed. Add managed translations then while a single static english copy of the main stuff is easy to distribute, and dynamic set of content WOULD be easier going forward. Except there would never be any agreement on how THAT would be managed and on which database engine :( -- L

Re: [PHP-DEV] Snapping php

2017-05-24 Thread Lester Caine
eems to have taken over as the package manager of choice. It's still not the core way of managing things. It's a matter of choice. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk Enquiry

Re: [PHP-DEV] Re: [RFC] deprecate PDO::PARAM_NULL

2017-05-18 Thread Lester Caine
On 18/05/17 10:43, Marco Pivetta wrote: > On Thu, May 18, 2017 at 11:38 AM, Lester Caine <les...@lsces.co.uk> wrote: > >> On 18/05/17 09:15, Dorin Marcoci wrote: >>> Yes, null is a state, not a type. ->bindValue('Foo', PDO::PARAM_NULL) is >>> awesome. >

Re: [PHP-DEV] Re: [RFC] deprecate PDO::PARAM_NULL

2017-05-18 Thread Lester Caine
, it is also a valid value for a parameter. -- 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 D

Re: [PHP-DEV] [RFC] PDO Float Type

2017-04-21 Thread Lester Caine
y produce and none of the type systems being bodged in currently can handle fixed precision numbers, so leave these as strings and allow third party add-ons to properly process this data. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine E

Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-03-19 Thread Lester Caine
orrible its API is. https://w3techs.com/technologies/overview/content_management/all Where does Doctrine fit into that picture? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk Enqu

Re: [PHP-DEV] Re: [RFC] Extended String Types For PDO

2017-03-19 Thread Lester Caine
ction layers which don't rely on PDO or for the likes of things like wordpress only support MySQL anyway so don't need a cross database layer. None of the 'improvements' added to PDO recently do anything to improve it's standing, it still lacks a real reason for existing ... -- Lester Caine - G8HFL -

Re: [PHP-DEV] Type variants

2017-03-12 Thread Lester Caine
the stock level and handle it differently if there is not sufficient stock. Trying to create 'type's for all the variants of the object is just wrong? int_instock, int_minorder, int_backorder, int_special_production and so on as the types of LineItem so 'instanceof' will work for you? -- Les

Re: [PHP-DEV] [Discussion] is_string(), string type and objects implementing __toString()

2017-03-09 Thread Lester Caine
tering of that data internally. Strict may provide some users with a comfort blanket that internally they have to do fewer checks on the data coming in but it is only creating an uncontrollable mess instead since there are now even more ways to filter what is essentially the same simple data. --

Re: [PHP-DEV] Namespaces in Core

2017-02-07 Thread Lester Caine
ut equally users need to be aware that it may not be present and act accordingly. -- 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 Dig

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation v2

2016-12-06 Thread Lester Caine
ase engine can actually work with rather than one that a more capable database engine will process. Testing the innards of some driver is simply wrong, one tests the whole process is working! And IDEALLY the test suit for PDO should work which ever target is selected, but that is not lightly to ha

Re: [PHP-DEV] Immutability RFC

2016-11-21 Thread Lester Caine
e basic building block and make it work the same way for everybody whether simply validating raw data, or protecting fields that have rules preventing updating. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - h

Re: [PHP-DEV] [RFC] Abolish 50%+1 Votes

2016-11-19 Thread Lester Caine
he way the language is being pushed without a substantial consensus that requires the the rules get more discussion than getting back to a 'simple' novice friendly version of PHP. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Elec

Re: [PHP-DEV] [RFC] Abolish 50%+1 Votes

2016-11-19 Thread Lester Caine
ent RFC's have overlapping elements where a consensus on the base approach may be of more use than patching individual parts in isolation. A vote on the 'roadmap' element with sub sections on elements which may well not be appropriate for a full 3/2rds in light of the main question. -- Lester Ca

Re: [PHP-DEV] Type locked variables

2016-11-16 Thread Lester Caine
and function overload to handle a multiple of fixed variable sizes. -- 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

Re: [PHP-DEV] DateTime microseconds discussion

2016-11-08 Thread Lester Caine
e seconds can be trimmed if appropriate, so a 'default' string format would solve the problem of comparing time data from different sources? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve -

Re: [PHP-DEV] Allow Iterator to be used with current, next, reset, key functions

2016-11-01 Thread Lester Caine
et of functions needed to handle simple structures and move everything else into optional extensions ... beginners don't need all the heavy stuff and I include Reflections in that ... A starter manual does not need the bulk of the code that is weighing down PHP today. -- Lester Caine - G8HFL -

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation

2016-10-26 Thread Lester Caine
ixed or retired. DB-Library should simply handle prepared statements by converting them into simple SQL that the API CAN handle. That is the point of 'emulation' and it should not need any additional tools to debug it. The .phpt tests should be testing that the emu

Re: [PHP-DEV] Re: [RFC] Debugging PDO Prepared Statement Emulation

2016-10-24 Thread Lester Caine
ng old mysql could handle. I presume that dblib has the same fundamental problem? But mssql has prepared statements so dblib SHOULD provide that interface? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - ht

Re: [PHP-DEV] header() removes all header of the same name.

2016-10-21 Thread Lester Caine
e set cookie later? (ala mysql => mysqli) Or perhaps a new object model for managing header that can be developed along side the procedural model ... what is being proposed for setcookie() certainly seems more in line with that style of programming? -- Leste

Re: [PHP-DEV] [RFC] Driver-Specific PDO Param Types

2016-10-19 Thread Lester Caine
actually the right base to be building on, or should a better attempt be made at solving the cross database problems. ADOdb is still the better benchmark for a lot of the 'loose ends' that plague PDO. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Improve uniqid() uniqueness

2016-10-18 Thread Lester Caine
On 18/10/16 12:37, Yasuo Ohgaki wrote: > The patch committed is pure bug fix. https://www.google.co.uk/search?q=%2Fdev%2Furandom+is+not+readable+by+php Even bug fixes need proper documentation to avoid the WTF ! -- Lester Caine - G8HFL - Contact - http://lsces.co

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Improve uniqid() uniqueness

2016-10-18 Thread Lester Caine
.. and the RFC process is at least part of the documentation. -- 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

Re: [PHP-DEV] Re: [RFC][DISCUSSION] Improve uniqid() uniqueness

2016-10-18 Thread Lester Caine
he users can use things, but things like /dev/urandom may need some additional notes to help identify problems when frameworks like owncloud start throwing errors. As Niklas says it's shared environments where this one may bite. -- Lester Caine - G8HFL - Contact - http://

Re: [PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statementslet value dictate parameter type

2016-10-11 Thread Lester Caine
o 'assume' when in reality PDO has always needed a proper schema facility either back from the connected database, or internally in order to 'emulate' the correct set of data. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic

Re: [PHP-DEV] Intention to move mcrypt to PECL

2016-10-06 Thread Lester Caine
e it's a simple exercise to restore anything relegated to the second level of code storage. -- 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 D

Re: [PHP-DEV] Fwd: [PHP-BUG] Bug #73234 [NEW]: emulated statements let value dictate parameter type

2016-10-03 Thread Lester Caine
identified in the prepared SQL. In this case :null has nothing to identify what it is to be prepared to populate. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySo

Re: [PHP-DEV] RFC - Immutable classes

2016-09-13 Thread Lester Caine
his. If I have a copy of the code in the 'construction' version of the class does the copy also need that code duplicated? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://

Re: [PHP-DEV] Modern practices ...

2016-09-13 Thread Lester Caine
On 13/09/16 01:44, Pierre Joye wrote: > On Tue, Sep 13, 2016 at 3:06 AM, Lester Caine <les...@lsces.co.uk> wrote: >> On 12/09/16 20:31, Christoph M. Becker wrote: >>> On 11.09.2016 at 12:35, Lester Caine wrote: >>> >>>> On 11/09/16 11:05, Christoph M. B

Re: [PHP-DEV] Modern practices ...

2016-09-12 Thread Lester Caine
On 12/09/16 20:31, Christoph M. Becker wrote: > On 11.09.2016 at 12:35, Lester Caine wrote: > >> On 11/09/16 11:05, Christoph M. Becker wrote: > >> I have already debugged the problems and will tidy up the notes later >> when I cross check things. This is the

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-11 Thread Lester Caine
etter job at maintaining a current set of tools than PHP does itself? -- 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 Worksh

Re: [PHP-DEV] Modern practices ...

2016-09-11 Thread Lester Caine
On 11/09/16 11:05, Christoph M. Becker wrote: > On 10.09.2016 at 23:45, Lester Caine wrote: > >> On 10/09/16 16:41, Christoph M. Becker wrote: >> >>> Despite the rather common myth, building PHP on Windows nowadays is not >>> really harder than on Linux.

Re: [PHP-DEV] Modern practices ...

2016-09-11 Thread Lester Caine
On 11/09/16 07:06, Pierre Joye wrote: > On Sep 10, 2016 3:32 PM, "Lester Caine" <les...@lsces.co.uk> wrote: > >> I think I am right in saying Pierre originally needed pickle so that >> PEAR could be dropped in the windows? > > It was not the reaso

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-10 Thread Lester Caine
evelopers who need the help here It's the end user of a developers work who needs an easy way to install it. The vast majority of users still stuck on PHP5.2/3 would probably not even know what PHP code they are running, even if they knew what a command line was. -- Le

Re: [PHP-DEV] Modern practices ...

2016-09-10 Thread Lester Caine
pile+PHP7+Build+on+Windows+10 But while the licensing is fairly loose for individual developers, I doubt that any government IT department could get passed the 'enterprise' restrictions on use ... which was the block on earlier options for building windows versions as well. -- Leste

Re: [PHP-DEV] Modern practices ...

2016-09-10 Thread Lester Caine
On 10/09/16 09:32, Lester Caine wrote: > Doing some digging I've found the conversations on this back in 2011. At > that time the statement was made that 'php project does not provide > binary builds' and 'if the user can't install a compiler they should not > be using php'. I

Re: [PHP-DEV] Modern practices ...

2016-09-10 Thread Lester Caine
On 09/09/16 14:28, Lester Caine wrote: > I'd forgotten the official windows packages no longer had PEAR anyway. > Does make the discussion on that somewhat academic? We have been > installing Linux servers as replacements to the windows boxes so the > need to actually load newer wi

Re: [PHP-DEV] [RFC] Make uniqid() more unique

2016-09-10 Thread Lester Caine
unique element for ensuring unique id's across the whole system. -- 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

Re: [PHP-DEV] Modern practices ...

2016-09-09 Thread Lester Caine
On 09/09/16 13:32, Ferenc Kovacs wrote: > On Fri, Sep 9, 2016 at 1:45 PM, Lester Caine <les...@lsces.co.uk> wrote: > >> > On 09/09/16 12:35, Ferenc Kovacs wrote: >>> > > but please, this is really offtopic on this list. >> > >> > See my oth

Re: [PHP-DEV] Modern practices ...

2016-09-09 Thread Lester Caine
ges happily. I AM trying to learn composer, and I can see now how it can be used, but simply passing the buck to getcomposer is not the way to use it for a default PHP installation. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electro

Re: [PHP-DEV] Modern practices ...

2016-09-09 Thread Lester Caine
fashioned, but there is no clear alternative to replace it, so if an element of that model such as PEAR needs to be replaced with an alternative such as composer, the alternative should be used in a manor that fits the overall installation model? Now if there is a more modern installation m

Re: [PHP-DEV] Modern practices ...

2016-09-09 Thread Lester Caine
have never had a full security audit of your systems! A new user should NEVER install their own version of anything relating to the running system. THAT is a potential hole in the security of the system. The new user should simply be given access to the locked down code already installed. -- Leste

Re: [PHP-DEV] [RFC] Make uniqid() more unique

2016-09-09 Thread Lester Caine
the details, but the results are demonstrable. I presume similar methods are used by the other database engines, so would it be worth seeing if there is some common 'fix' which gives good results across a few databases. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/

[PHP-DEV] Modern practices ...

2016-09-09 Thread Lester Caine
going on about validating the PHP code against malicious attack, but the whole framework is open to that? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com

Re: [PHP-DEV] [RFC][VOTE] Add validation functions to filter module

2016-09-08 Thread Lester Caine
e them or not, and none of the debate of where 'strict mode=1' enables it. Just as a read_only rule gets rid of the need for yet another whole family of classes. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace withcomposer/pickle

2016-09-08 Thread Lester Caine
Of cause where sites are not being heavily audited for security we can stick up two fingers and the only active user is root - totally politically incorrect - but it prevents the bulk of the problems caused when some 'developer' screws up something global after a Linux update. -- Lester Cain

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace withcomposer/pickle

2016-09-08 Thread Lester Caine
dows rather than linux and each IT technician has their own login and these change year on year, so the tool chains all need to be globally installed, something PEAR is designed to provide? An installation of composer needs to emulate that model at the 'PHP' level otherwise we are looking at a major

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace withcomposer/pickle

2016-09-08 Thread Lester Caine
mean by "affect that installation"? Currently having followed the installation guide I have things working on a home directory. This is probably what people expect today, but I still expect tools to be available which ever login I use ... testing different client profiles. -- Lester Caine - G8H

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace withcomposer/pickle

2016-09-08 Thread Lester Caine
On 08/09/16 12:33, Christoph M. Becker wrote: > On 08.09.2016 at 12:35, Lester Caine wrote: > >> On 08/09/16 09:24, Daniel Morris wrote: >>> On Thu, 8 Sep 2016, at 09:07 AM, Lester Caine wrote: >>>> I've just been through an exercise to give PHP_CodeSniffe

Re: [PHP-DEV] [RFC][VOTE] Add validation functions to filter module

2016-09-08 Thread Lester Caine
ve script is replaced by $var->is_valid(); or if you prefer it throws an exception when you try and set the variable with an invalid input ( or one that does not match a 'strict' rule ). -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=co

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-08 Thread Lester Caine
On 08/09/16 09:24, Daniel Morris wrote: > On Thu, 8 Sep 2016, at 09:07 AM, Lester Caine wrote: >> I've just been through an exercise to give PHP_CodeSniffer a go on my >> code base. I've not worried too much about that in the past since >> Eclipse in general flags style probl

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-08 Thread Lester Caine
o help with? Main reason for loading was to give some of the PSR rule checks a try to see just what affect they would have on the code, but I don't think this approach will help with the structural changes needed? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki

[PHP-DEV] Even validating data it can still be wrong :)

2016-09-07 Thread Lester Caine
this is a case where 'fatal exception' should have shut things down before the plane took off? -- 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

Re: [PHP-DEV] RFC - Immutable classes

2016-09-07 Thread Lester Caine
action so a DateTimeImmutable is just a 64bit number ... which you can't write to. -- 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

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-07 Thread Lester Caine
On 07/09/16 12:37, Rowan Collins wrote: > On 07/09/2016 11:51, Lester Caine wrote: >> This comes down simply to 'education', and just as we provide migration >> guides to check deprecated code and help re-write it there needs to be >> the same sort of guideline - provid

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-07 Thread Lester Caine
n W10, which is part of the reason I am concerned if the likes of interbase is no longer available pre-compiled. I have no problem playing on Linux, it's just keeping windows clients alive and the existing set-up just works. -- Lester Caine - G8HFL - Contact - http://lsce

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-07 Thread Lester Caine
of working that are then at odds with the rest of the framework. Yes over a few years I can probably migrate, but this change is adding yet another layer of options without any regard to interoperability. I can't apply a simple set of rules and switch style as everybody else has their own style

Re: [PHP-DEV] [RFC][VOTE] Add validation functions to filter module

2016-09-07 Thread Lester Caine
On 07/09/16 10:19, Lester Caine wrote: > If the definition of a variable is > improved to include ALL of the validation we ideally need and I include > setStrict(int) in that then at run time we can both validate input and > decide on the error model that is applied. And I know I will

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-07 Thread Lester Caine
ing and it's that layer that needs to be at least prototyped before current functional systems are switched off. But I know the answer already ... not our problem :( -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Service

Re: [PHP-DEV] [RFC][VOTE] Add validation functions to filter module

2016-09-07 Thread Lester Caine
firing offence, but the sort of layer of security I'm looking at should not introduce any more delay than the normal. The way it falls down is if people can't be bothered to set the validation values up ... or create your filter array. Default rules such as your crude filters are a point for discussion. -

Re: [PHP-DEV] [RFC][VOTE] Add validation functions to filter module

2016-09-06 Thread Lester Caine
On 06/09/16 03:19, Yasuo Ohgaki wrote: > Hi Lester, > > On Fri, Sep 2, 2016 at 7:58 PM, Lester Caine <les...@lsces.co.uk> wrote: >> A filter of "is this string corrupted with an injection attempt" seems >> rather more difficult to define than "email"

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-05 Thread Lester Caine
On 05/09/16 19:51, Davey Shafik wrote: > https://github.com/dshafik/php7-mysql-shim — I already solved that problem, > at least in the short term. Another one for PHPSurgery MUST get that updated ... when time permits. -- Lester Caine - G8HFL - Contact

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-05 Thread Lester Caine
to re-write all the code to mysqli. Restoring extensions from pecl still needs pecl to exist even for pickle to access them including the web interface to catalogue them? And I view PEAR in the same light. So this is not about 'Deprecate' the code, but just the loader bit? -- Leste

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-04 Thread Lester Caine
e to get back to some BASIC functionality such as loading a form, validating it's content, and string the results without having a dozen ways of filtering the inputs and a dozen ways of accessing the database. -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-03 Thread Lester Caine
s guidance to installing required tools and advise on optional ones. Something that is easy to do with the PEAR/PECL/dynamic extension system we currently have, but not so easy to manage with composer? A handler can obviously be written to edit the composer setup on the fly, and it's that sort of

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-03 Thread Lester Caine
2, and PSR-4 describe. > > You may not agree with the choices they made, like the people that made > them, or approve of the processes they used, but all that would be just > as likely if they happened to be hosted on a sub-domain of php.net. So this RFC is simply proposing that PHP-FIG bec

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-03 Thread Lester Caine
what files. Irrelevant if things just work, but when debugging an installation, the code flow should be easy to establish! -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://e

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-03 Thread Lester Caine
On 03/09/16 11:20, Rowan Collins wrote: > On 3 September 2016 09:18:48 BST, Lester Caine <les...@lsces.co.uk> wrote: >> Is Composer really all there is? >> I'm looking at the problems projects like tiki have with trying to keep >> composer working in an active project, a

Re: [PHP-DEV] [RFC] Deprecate PEAR/PECL & Replace with composer/pickle

2016-09-03 Thread Lester Caine
he other similar package managers for javascript, python and the like with their own manager and the situation is simply a mess! I've half a dozen package managers listed across the whole web framework base, and composer is not top of the list. -- Lester Caine - G8HFL

Re: [PHP-DEV] [RFC][VOTE] Add validation functions to filter module

2016-09-02 Thread Lester Caine
are as set of simple filters that can be used ... as an alternative to the more difficult to define ones? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve

Re: [PHP-DEV] [RFC][VOTE] Add validation functions to filter module

2016-09-02 Thread Lester Caine
hecking that the expected strings ARE still valid? -- 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 Rai

Re: [PHP-DEV] [RFC][VOTE] Add validation functions to filter module

2016-09-02 Thread Lester Caine
vailable to use. -- 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://rainbowdig

Re: [PHP-DEV] Write down a deprecation policy

2016-08-25 Thread Lester Caine
is the 'best practice' guide to using all the 'new' features of PHP? -- 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 Worksh

Re: [PHP-DEV] [RFC][DISCUSSION] Remove utf8_decode() and utf8_encode()

2016-08-22 Thread Lester Caine
8_decode internally. At that time of cause there was no provision for multi-byte characters and the decoding of a string is hard code in the function. If you look closer you will see that xml_utf8_decode still expects strings of type XML_Char * and so utf8_decode() wraps that to hide the differences. --

Re: [PHP-DEV] Re: [RFC][VOTE] Add validation functions to filter module

2016-08-20 Thread Lester Caine
simply throwing away suspect data as each variable is built and having the logic to simply create an exception on the first failure, only pass those fields that are valid ensures the $_POST array matches the clients data array. -- Lester Caine - G8HFL - Contact - http://

Re: [PHP-DEV] RFC Posted for str_begins and str_ends functions

2016-08-18 Thread Lester Caine
wondering if str_starting and str_ending matched better with other string handling options. -- 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 Engineer

Re: [PHP-DEV] [RFC] orphan extensions cleanup

2016-08-18 Thread Lester Caine
On 18/08/16 08:08, Daniel Morris wrote: > On Thu, 18 Aug 2016, at 06:58 AM, Lester Caine wrote: >> Can you justify that statement! > > A quick comparison on Google Trends will show this, since the beginning > of 2013 Couchbase has been more popular, GitHub also has m

Re: [PHP-DEV] Re: [RFC][VOTE] Add validation functions to filter module

2016-08-18 Thread Lester Caine
would help, but adding even a simple set of limits to the base variables addresses the majority of what is being discussed? Even if you leave the finer validation rules such as 'valid email' to later 'business' logic? But is it really that difficult to go from 'short_string' to 'email' as a validation rul

Re: [PHP-DEV] Re: [RFC][VOTE] Add validation functions to filter module

2016-08-18 Thread Lester Caine
nd a naive user who simply does not know you can't use cut and paste to copy something over because the OS will also copy all the hidden html along with it? -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http:/

Re: [PHP-DEV] [RFC] orphan extensions cleanup

2016-08-17 Thread Lester Caine
no one who is competent enough to maintain it. -- 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 R

Re: [PHP-DEV] Re: [RFC][VOTE] Add validation functions to filter module

2016-08-17 Thread Lester Caine
EQUEST array. In exception mode the first exception kills the process. In error mode we simply decide how to handle the problem which may then involve checking what attack mechanism is being used ... or simply say invalid data and reload the the form. If it was just a problem with one field then that fie

Re: [PHP-DEV] Re: [RFC][VOTE] Add validation functions to filtermodule

2016-08-17 Thread Lester Caine
On 17/08/16 10:36, Christoph M. Becker wrote: > On 17.08.2016 at 10:58, Lester Caine wrote: > >> > ( and the javascript thing is more a case of upgrading PHP examples to >> > use html5 validation by default ) > And thereby suggesting that HTML5 or JavaScript validati

Re: [PHP-DEV] Re: [RFC][VOTE] Add validation functions to filter module

2016-08-17 Thread Lester Caine
( and the javascript thing is more a case of upgrading PHP examples to use html5 validation by default ) -- Lester Caine - G8HFL - Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.c

Re: [PHP-DEV] Re: [RFC][VOTE] Add validation functions to filter module

2016-08-17 Thread Lester Caine
they try the next option until they do get a response ... -- 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

Re: [PHP-DEV] Re: [RFC][VOTE] Add validation functions to filter module

2016-08-17 Thread Lester Caine
er down the wrong path from day one ... so can we agree on something simple and easily expandable? filter_require_var_array($_POST, $post_spec); could then use those rules to build the $post_spec array, but why not just use the rules direct? -- Lester Caine - G8HFL - C

Re: [PHP-DEV] [RFC] orphan extensions cleanup

2016-08-16 Thread Lester Caine
ng there has changed since I first used it back in 2004 and the next step is to test with FB3 and PHP7 but I've not had time to set up a suitable target site as yet. Any firebird user knows the password to get in ... 'masterke' for those who don't ... -- Lester Caine - G8HFL -

Re: [PHP-DEV] [RFC][VOTE] Add session_create_id() function

2016-08-16 Thread Lester Caine
ce the same sequence of numbers. A UUID generator provided to ensure every distributed service has a uniquely identifiable id for every 'session' is not something that forms part of a single instance of PHP. It must be centrally managed with a central session store. All that

Re: [PHP-DEV] [RFC] orphan extensions cleanup

2016-08-16 Thread Lester Caine
On 16/08/16 02:11, Kalle Sommer Nielsen wrote: > 2016-08-16 1:27 GMT+02:00 Lester Caine <les...@lsces.co.uk>: >> None of the listed bugs are a problem in normal use. Some WERE fixed in >> previous code, but those fixes were not merged with the master code base >> in

<    1   2   3   4   5   6   7   8   9   10   >