[PHP-DEV] [RFC][DISCUSSION] Add validation functions to filter

2016-08-02 Thread Yasuo Ohgaki
Hi all, This RFC is to add validation functions and string validation filter. https://wiki.php.net/rfc/add_validate_functions_to_filter It also allows to define multiple filters for an input. i.e. You can apply multiple filter rules for an input. Comments are appreciated! Thank you! -- Yasuo

[PHP-DEV] Re: [RFC][VOTE] Session ID without hashing - Vote reopened and restarted

2016-08-02 Thread Yasuo Ohgaki
Hi all, Session ID without hashing https://wiki.php.net/rfc/session-id-without-hashing#vote This RFC is passed 9 vs 0. Compatible default is used as default. 7 vs 3. It needs to update the default INI. I'll finish it in a few days. Thank you for voting! -- Yasuo Ohgaki yohg...@ohgaki.net On M

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

2016-08-02 Thread Yasuo Ohgaki
On Wed, Aug 3, 2016 at 7:44 AM, Yasuo Ohgaki wrote: > as programmer does not have to know that's the TRUE means. s/that's/what's/ I shouldn't write mails while writing code :( -- Yasuo Ohgaki yohg...@ohgaki.net -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit: htt

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

2016-08-02 Thread will
On 2016-08-02 18:44, Yasuo Ohgaki wrote: Hi David, On Tue, Aug 2, 2016 at 10:36 AM, David Rodrigues wrote: Sara Golemon wrote: Feeling "meh" on it (neither for nor against), but I would consider consistency with other str*() functions by making case-insensitivity live in separate functions r

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

2016-08-02 Thread Rowan Collins
On 02/08/2016 23:44, Yasuo Ohgaki wrote: It might be okay to have "s" in function names, but if we want to be consistent, str_replace -> str_replaces str_ireplace -> str_ireplaces IMO, following names are better for consistency. str_begin str_ibegin str_end str_iend I think those names mean

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

2016-08-02 Thread Yasuo Ohgaki
Hi David, On Tue, Aug 2, 2016 at 10:36 AM, David Rodrigues wrote: > Sara Golemon wrote: >> Feeling "meh" on it (neither for nor against), but I would consider >> consistency with other str*() functions by making case-insensitivity >> live in separate functions rather than as a parameter. e.g. >>

Re: [PHP-DEV] [RFC] E_NOTICE for invalid array container

2016-08-02 Thread David Walker
Dan, You're right on both accounts; also, as I just notices it could easily have other BC-breaks (although expecting errors in a certain format is odd) through calls like error_get_last(), which would regardless of INI settings include this NOTICE. I will update the RFC with these changes. -- Da

[PHP-DEV] NEUTRAL Benchmark Results for PHP Master 2016-08-02

2016-08-02 Thread lp_benchmark_robot
Results for project PHP master, build date 2016-08-02 06:28:01+03:00 commit: 7b4157d previous commit:b6f3efd revision date: 2016-08-01 20:20:27+08:00 environment:Haswell-EP cpu:Intel(R) Xeon(R) CPU E5-2699 v3 @ 2.30GHz 2x18 cores, stepping 2, LLC 45 MB

Re: [PHP-DEV] Re: Adding validate_var_array()/validate_input_array() to which version?

2016-08-02 Thread Rowan Collins
On 01/08/2016 23:12, Yasuo Ohgaki wrote: Raising Exception would be prefered. Any comment raising exception? ExceptionFilterValidate wouldn't cause much BC, IMO. I don't follow. Do you mean throwing an exception to the existing filter-and-continue functions? If so, that would surely break ever

Re: [PHP-DEV] New RFC

2016-08-02 Thread Dan Ackroyd
> On 2 Aug 2016, at 09:56, Christoph Becker wrote: > For the record: there has been the "Array Of" RFC[1], but that has been > declined. It was declined because of the implementation, rather than the idea. A new proposal with a different implementation should be welcomed to be considered. Ch

Re: [PHP-DEV] New RFC

2016-08-02 Thread Rowan Collins
On 02/08/2016 09:56, Christoph Becker wrote: For the record: there has been the "Array Of" RFC[1], but that has been declined. [1] If I remember rightly, the biggest problem raised with typed arrays is that type constraints in PHP are checked dynamically eve

Re: Re: [PHP-DEV] New RFC

2016-08-02 Thread Tomáš Holan
Oh that's sad, cause it's missing feature. But what we can do. Thanks for info  Christoph. - Původní zpráva - Odesilatel: "Christoph Becker" Příjemce: "Dan Ackroyd" , "Tomáš Holan" Kopie: internals@lists.php.net Datum: 02.08.2016 10:56 Předmět: Re: [PHP-DEV] New RFC On 02.08.2016

Re: [PHP-DEV] New RFC

2016-08-02 Thread Christoph Becker
On 02.08.2016 at 09:11, Dan Ackroyd wrote: > It has been thought about, and several people are looking at an > implementation of generics: https://wiki.php.net/rfc/generics However, > it seems quite hard to implement. > > I am beginning to wonder if rather than aiming for full support of > generi

Re: [PHP-DEV] New RFC

2016-08-02 Thread Peter Lind
On 2 August 2016 at 09:11, Dan Ackroyd wrote: > Hi Tomáš, > > It has been thought about, and several people are looking at an > implementation of generics: https://wiki.php.net/rfc/generics However, > it seems quite hard to implement. > > I am beginning to wonder if rather than aiming for full su

Re: [PHP-DEV] New RFC

2016-08-02 Thread Dan Ackroyd
Hi Tomáš, It has been thought about, and several people are looking at an implementation of generics: https://wiki.php.net/rfc/generics However, it seems quite hard to implement. I am beginning to wonder if rather than aiming for full support of generics listed in that RFC, instead we just aimed