Re: [PHP-DEV] iconv vs. mbstring

2020-03-05 Thread Aleksander Machniak
On 03.03.2020 23:16, Christoph M. Becker wrote: > For users learning PHP, and also for new code, it would be beneficial to > not have to decide which of these extensions to use; if they need > character encoding conversion, iconv() would be preferable; for more > general string functionality, it

Re: [PHP-DEV] Make sorting stable

2020-03-05 Thread Nikita Popov
On Wed, Mar 4, 2020 at 7:35 PM Sara Golemon wrote: > On Wed, Mar 4, 2020 at 12:12 PM Nikita Popov wrote: > >> On Wed, Mar 4, 2020 at 6:17 PM Sara Golemon wrote: >> >>> On Wed, Mar 4, 2020 at 10:42 AM Nikita Popov >>> wrote: >>> The only issue I ran into is that this change has a negative

Re: [PHP-DEV] Make sorting stable

2020-03-05 Thread Nikita Popov
On Wed, Mar 4, 2020 at 11:12 PM Christoph M. Becker wrote: > On 04.03.2020 at 19:11, Nikita Popov wrote: > > > 1. As Tyson suggests, we can throw a warning if a boolean is returned > from > > the comparison callback (probably with a check to only throw it once per > > sort), to make it obvious

Re: [PHP-DEV] Make sorting stable

2020-03-05 Thread Christoph M. Becker
On 05.03.2020 at 13:05, Nikita Popov wrote: >> Given that we have internal classes which deliberately have such >> comparison behavior (i.e. returning 0 or 1, to signal that there is no >> order defined), e.g. Closures[1], I tend to prefer raising a warning >> instead of trying to recover. >> >>

Re: [PHP-DEV] OSI approval for PHP 3.01 license

2020-03-05 Thread Ben Ramsey
> On Mar 4, 2020, at 11:59, Derick Rethans wrote: > > On Wed, 4 Mar 2020, Ben Ramsey wrote: > On Mar 4, 2020, at 11:26, Stanislav Malyshev wrote: >>> >>> Hi! >>> Does anyone here remember why the changes to the license where done in the first place? The commit was done on

Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2)

2020-03-05 Thread Peter Bowyer
On Fri, 28 Feb 2020 at 15:25, Paul M. Jones wrote: > Are there any members here who currently expect to vote "no", who have not > yet chimed in? I'd like to hear your criticisms and objections, so I can at > least attempt to resolve your concerns. > I expect to vote "no". My thoughts are: 1.

Re: [PHP-DEV] Make sorting stable

2020-03-05 Thread Nikita Popov
On Wed, Mar 4, 2020 at 9:39 PM Dmitry Stogov wrote: > Hi Nikita, > > I suspect, this way of stable sorting won't come for free. > Most probably, It'll require more comparisons and swaps. > > I would prefer, extend sort() functions with optional $stable argument, > that would lead to use stable

[PHP-DEV] PHP 7.3.16RC1 is available for testing

2020-03-05 Thread Christoph M. Becker
PHP 7.3.16RC1 has just been released and can be downloaded from: Or use the git tag: php-7.3.16RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system. 7.3.16 should be expected

Re: [PHP-DEV] [RFC] [DISCUSSION] Immutable/final/readonly properties

2020-03-05 Thread Máté Kocsis
> > I totally agree with this: there must be a way to work around the keyword - > either via reflection or another means. Via Reflection, it could be a new method `->setWritable(true)` (next to > `->setAccessible(true)`). > I'm OK to support working around the keyword via reflection. Since my

Re: [PHP-DEV] RFC: Server-Side Request and Response Objects (v2)

2020-03-05 Thread Arvids Godjuks
On Fri, 28 Feb 2020 at 16:25, Paul M. Jones wrote: > Hi everyone, > > All outstanding issues on this RFC appear to be resolved one way or > another. With that in mind: > > Are there any members here who currently expect to vote "no", who have not > yet chimed in? I'd like to hear your criticisms

Re: [PHP-DEV] iconv vs. mbstring

2020-03-05 Thread Christoph M. Becker
On 05.03.2020 at 15:33, Rowan Tommins wrote: > On Thu, 5 Mar 2020 at 11:59, Aleksander Machniak wrote: > >> Also, I have a case in which iconv_* functions were much much slower >> than mbstring. See wordwrap implementation in >> >>

Re: [PHP-DEV] OSI approval for PHP 3.01 license

2020-03-05 Thread Stanislav Malyshev
Hi! >>> If this version is approved, will the steward voluntarily deprecate version >>> 3.0, and if not, and if 3.01 is approved, should 3.0 be involuntarily >>> deprecated? > > > The “steward” is the PHP Group. I know that Rasmus, Zeev, and Sascha are > still active on this list, but I

Re: [PHP-DEV] OSI approval for PHP 3.01 license

2020-03-05 Thread Ben Ramsey
> On Mar 5, 2020, at 15:28, Stanislav Malyshev wrote: > > Hi! > If this version is approved, will the steward voluntarily deprecate version 3.0, and if not, and if 3.01 is approved, should 3.0 be involuntarily deprecated? >> >> >> The “steward” is the PHP Group. I know that

Re: [PHP-DEV] OSI approval for PHP 3.01 license

2020-03-05 Thread Ben Ramsey
> On Mar 5, 2020, at 16:31, Christoph M. Becker wrote: > > On 05.03.2020 at 22:36, Ben Ramsey wrote: > >> There is some concern at the OSI about these clauses, when the license is >> applied to any projects not owned by the PHP Group. I’ll keep everyone here >> posted and will let you know if

Re: [PHP-DEV] Make sorting stable

2020-03-05 Thread Andrea Faulds
Hi, Nikita Popov wrote: I've implemented this variant now. If the comparison function returns a boolean, you get Deprecated: usort(): Returning bool from comparison function is deprecated, return one of -1, 0 or 1 instead in %s on line %d once per usort() call, and we retry with swapped

Re: [PHP-DEV] OSI approval for PHP 3.01 license

2020-03-05 Thread Christoph M. Becker
On 05.03.2020 at 22:36, Ben Ramsey wrote: > There is some concern at the OSI about these clauses, when the license is > applied to any projects not owned by the PHP Group. I’ll keep everyone here > posted and will let you know if these become more than passing concerns. > > > 3. The name

Re: [PHP-DEV] @official_php credentials?

2020-03-05 Thread Daniel Brown
On Tue, Feb 4, 2020 at 8:47 AM Derick Rethans wrote: > > On Tue, 4 Feb 2020, Ben Ramsey wrote: > > > If you use TweetDeck, you can grant access to others, without needing > > to pass around the credentials. > > Yes, that is exactly how we are using it. I'm presuming the credentials were

Re: [PHP-DEV] @official_php credentials?

2020-03-05 Thread Derick Rethans
On 5 March 2020 22:50:56 GMT, Daniel Brown wrote: >On Tue, Feb 4, 2020 at 8:47 AM Derick Rethans wrote: >> >> On Tue, 4 Feb 2020, Ben Ramsey wrote: >> >> > If you use TweetDeck, you can grant access to others, without >needing >> > to pass around the credentials. >> >> Yes, that is exactly how

[PHP-DEV] Windows snapshot builds switching to debug

2020-03-05 Thread Christoph M. Becker
Hi all, the PHP for Windows team is considering to ship all PHP snapshot builds[1] as debug builds in the future (earliest at the end of March); currently these are release builds. The reason for this change is that debug builds obviously have better debugging support (including but not limited

Re: [PHP-DEV] iconv vs. mbstring

2020-03-05 Thread Rowan Tommins
On Thu, 5 Mar 2020 at 11:59, Aleksander Machniak wrote: > > Also, I have a case in which iconv_* functions were much much slower > than mbstring. See wordwrap implementation in > > https://github.com/roundcube/roundcubemail/blob/master/program/lib/Roundcube/rcube_mime.php#L589 > > Either I

[PHP-DEV] PHP 7.4.4RC1 is available for testing

2020-03-05 Thread Derick Rethans
PHP 7.4.4RC1 has just been released and can be downloaded from: Or use the git tag: php-7.4.4RC1 Windows binaries are available at: Please test it carefully, and report any bugs in the bug system at .

Re: [PHP-DEV] OSI approval for PHP 3.01 license

2020-03-05 Thread Ben Ramsey
> I’ve submitted a formal request for “legacy approval” to the OSI > license-review list, according to their policies. > > http://lists.opensource.org/pipermail/license-review_lists.opensource.org/2020-March/004716.html Here's a question from the OSI list that I cannot answer on my own: >>