Re: [PHP-DEV] Re: [VOTE] Voting opens for str_starts_with and ends_with functions

2019-07-08 Thread Andrey Andreev
Hi, On Mon, Jul 8, 2019 at 4:54 PM Claude Pache wrote: > > > > Le 8 juil. 2019 à 15:20, Christoph M. Becker a écrit : > > > > FTR, there is already substr_compare(). > > `substr_compare()` (as well as `strncmp()` which I am currently using in lieu > of `str_starts_with()`) forces you to provide

Re: [PHP-DEV] Re: [VOTE] Voting opens for str_starts_with and ends_with functions

2019-07-08 Thread Zeev Suraski
On Mon, Jul 8, 2019 at 4:53 PM Claude Pache wrote: > > > Le 8 juil. 2019 à 15:20, Christoph M. Becker a > écrit : > > > > FTR, there is already substr_compare(). > > `substr_compare()` (as well as `strncmp()` which I am currently using in > lieu of `str_starts_with()`) forces you to provides the

Re: [PHP-DEV] Re: [VOTE] Voting opens for str_starts_with and ends_with functions

2019-07-08 Thread Claude Pache
> Le 8 juil. 2019 à 15:20, Christoph M. Becker a écrit : > > FTR, there is already substr_compare(). `substr_compare()` (as well as `strncmp()` which I am currently using in lieu of `str_starts_with()`) forces you to provides the substring and the length of the substring, instead of just the

[PHP-DEV] Re: [VOTE] Voting opens for str_starts_with and ends_with functions

2019-07-08 Thread Christoph M. Becker
On 08.07.2019 at 15:05, Andrew Gromov wrote: >> Please don't switch behaviours via flags: separate names and >> implementations are much clearer and much simpler to follow. >> >> Yes, you will have multiple variations, but that's fine. > > > It is depends of preferences. > > In my opinion, create

Re: [PHP-DEV] Re: [VOTE] Voting opens for str_starts_with and ends_with functions

2019-07-08 Thread Marco Pivetta
On Mon, Jul 8, 2019, 12:15 Andrew Gromov wrote: > > For those voting against adding these functions, can you clarify why? > > Do you dislike how they are named, or do you not see the need for the > > case insensitive versions, or is there an issue with the implementation? > > > I believe that sta

[PHP-DEV] Re: [VOTE] Voting opens for str_starts_with and ends_with functions

2019-07-08 Thread Andrew Gromov
For those voting against adding these functions, can you clarify why? Do you dislike how they are named, or do you not see the need for the case insensitive versions, or is there an issue with the implementation? I believe that star_with/end_with is useful, but not in this form. The standard li

[PHP-DEV] Re: [VOTE] Voting opens for str_starts_with and ends_with functions

2019-07-04 Thread will
Following up on this, I plan to leave voting open for a full 15 days, until July 20, 2019 Anywhere-on-Earth (AOE) time. If there are issues with this time, let me know. Thanks, Will On 2019-07-04 22:13, w...@wkhudgins.info wrote: Hello all, After 15 days of discussion I have opened up votin