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

2017-09-04 Thread Paul Jones
> On Sep 4, 2017, at 18:06, Marco Pivetta wrote: > > On Mon, Sep 4, 2017 at 8:56 PM, Crocodile wrote: > >> In most cases users would like more than just valid/invalid, i. e. which >> particular rule(s) failed and also human-readable error messages. As of >> simple validation that is almost alw

Re: [PHP-DEV] [RFC][Discussion] Consistent callables

2017-09-04 Thread Stephen Reay
Sent from my iPhone > On 5 Sep 2017, at 03:05, Dan Ackroyd wrote: > > Stephen Reay wrote: >> Regarding the big change you suggest, making protected/private methods >> return false unless a new third parameter is true in is_callable(): >> I think you need to make your intention a *lot* clearer

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

2017-09-04 Thread Marco Pivetta
On Mon, Sep 4, 2017 at 8:56 PM, Crocodile wrote: > In most cases users would like more than just valid/invalid, i. e. which > particular rule(s) failed and also human-readable error messages. As of > simple validation that is almost always at hand, filter_* functions do a > good job, although I a

Re: [PHP-DEV] [RFC][Discussion] Consistent callables

2017-09-04 Thread Dan Ackroyd
Stephen Reay wrote: > Regarding the big change you suggest, making protected/private methods return > false unless a new third parameter is true in is_callable(): > I think you need to make your intention a *lot* clearer On 29 May 2017 at 12:01, Rowan Collins wrote: > Regarding is_callable,

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

2017-09-04 Thread Crocodile
In most cases users would like more than just valid/invalid, i. e. which particular rule(s) failed and also human-readable error messages. As of simple validation that is almost always at hand, filter_* functions do a good job, although I agree that they could be better. I, for one, would like to s

Re: [PHP-DEV] [VOTE] UUID

2017-09-04 Thread Sammy Kaye Powers
I really, really wanted to vote yes for this as I've wanted simple UUID creation in core for a long time, but I can't agree this is the correct implementation. Something like "uuid_v4_create()" seems to make a lot more pragmatic sense and use ramsey/uuid for anything more complicated. Sorry Richar

Re: [PHP-DEV] [VOTE] UUID

2017-09-04 Thread Remi Collet
Le 02/09/2017 à 09:01, Fleshgrinder a écrit : > Hello Internals! > > I just started the voting for the inclusion of a UUID value object in > PHP's core, targeting PHP 7.3. I wanted to start earlier, but was sick > the whole week. > > The voting is open starting now and until September 16. (2 week

Re: [PHP-DEV] I this a bug in PHP 7.1.9?

2017-09-04 Thread Rowan Collins
On 4 September 2017 01:27:49 BST, Jefferson Gonzalez wrote: >I upgraded my PHP version on a server from 7.0 to latest 7.1.9 and got >this strange behaviour, did something changed on the core language or >is >this a bug? > >PHP sample code: >-- > >function

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

2017-09-04 Thread Rowan Collins
On 4 September 2017 07:33:41 BST, Yasuo Ohgaki wrote: >Hi all, > >I spent a little time for a new input validation module. It's not >totally >new module, but is based on Filter module's validation filter >improvement >RFC in many ways. [1] Hi Yasuo, Thanks for tackling this. I do think the curre

[PHP-DEV] Re: [PHP-CVS] com php-src: fix default args for --with-pcre-valgrind: ext/pcre/config0.m4

2017-09-04 Thread Michael Wallner
On 25/07/17 00:31, Christopher Jones wrote: > > > On 20/7/17 10:31 am, Anatol Belski wrote: >> Hi Chris, >> >>> -Original Message- >>> From: Christopher Jones [mailto:christopher.jo...@oracle.com] >>> Sent: Thursday, July 20, 2017 2:11 AM >>> To: Anatol Belski ; php-...@lists.php.net; Tia

RE: [PHP-DEV] [VOTE] UUID

2017-09-04 Thread Marco Pivetta
Hey Zeev, My issue with having more core classes is just with the fact that reflection and type system are not working 1:1 like in userland. Richard fixed that in the PR with extensive testing, so that's fine. More type safety is definitely a good thing, especially when widely distributed. Passin

RE: [PHP-DEV] [VOTE] UUID

2017-09-04 Thread Zeev Suraski
> -Original Message- > From: Fleshgrinder [mailto:p...@fleshgrinder.com] > Sent: Sunday, September 3, 2017 10:17 AM > To: Zeev Suraski ; internals@lists.php.net > Subject: Re: [PHP-DEV] [VOTE] UUID > > On 9/2/2017 2:26 PM, Zeev Suraski wrote: > > > >> On 2 Sep 2017, at 13:43, Fleshgrinder