Re: [PHP-DEV] [RFC] Attributes v2

2020-03-11 Thread Mike Schinkel
> On Mar 11, 2020, at 5:36 PM, Rowan Tommins wrote: > > On 11/03/2020 19:12, Mike Schinkel wrote: >> My gut feeling is that attributes should be specific to the classes in which >> they are declared. But I see no reason a "must-add" requirement for >> attributes where the requirement is passed

Re: [PHP-DEV] Make sorting stable

2020-03-11 Thread Andrea Faulds
Hi Nikita! Nikita Popov wrote: I've update the message to say: Deprecated: usort(): Returning bool from comparison function is deprecated, return an integer less than, equal to, or larger than zero in %s on line %d The astute reader will notice that this is equivalent to "any integer", but

Re: [PHP-DEV] [RFC] Attributes v2

2020-03-11 Thread Rowan Tommins
On 11/03/2020 19:12, Mike Schinkel wrote: My gut feeling is that attributes should be specific to the classes in which they are declared. But I see no reason a "must-add" requirement for attributes where the requirement is passed down to a concrete class needs to be coupled to a inheritance of

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

2020-03-11 Thread Paul M. Jones
Hi Arvids, > On Mar 11, 2020, at 16:22, Arvids Godjuks wrote: > > I took a deeper look into the GitHub repo and it answered a few questions - > RFC just didn't give any examples of usage/instantiation and how you can > make a new object. I was thinking it was a read-only global type object >

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

2020-03-11 Thread Arvids Godjuks
On Sat, 7 Mar 2020 at 23:50, Paul M. Jones wrote: > Hi Arvids, > > > On Mar 5, 2020, at 05:19, Arvids Godjuks > wrote: > > > > one question I do have here is about how PHP-PM process manager will be > > able to interact with this layer? > > Cause right now it does rewrite the $_SERVER variable

Re: [PHP-DEV] [RFC] Attributes v2

2020-03-11 Thread Mike Schinkel
> On Mar 11, 2020, at 1:39 PM, Rowan Tommins wrote: > > On Wed, 11 Mar 2020 at 14:18, Mike Schinkel wrote: > >> >> IOW, if interfaces cannot enforce the requirements of the "contract" why >> have interfaces? Why not just use method_exisits() when we need to call a >> prescribed method? >>

Re: [PHP-DEV] [RFC] Attributes v2

2020-03-11 Thread Rowan Tommins
On Wed, 11 Mar 2020 at 14:18, Mike Schinkel wrote: > > IOW, if interfaces cannot enforce the requirements of the "contract" why > have interfaces? Why not just use method_exisits() when we need to call a > prescribed method? > Interfaces, at least as implemented by languages such as PHP and

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

2020-03-11 Thread Paul M. Jones
Hi all, Conversation on this RFC seems to have diminished. As far as I know, I have answered all criticisms/concerns/complaints one way or another. So if there are no more questions, and there is no objection, I will plan to call the vote on this proposal some time tomorrow or Friday. Thanks

Re: [PHP-DEV] [VOTE] Object-based token_get_all() alternative

2020-03-11 Thread Larry Garfield
On Wed, Mar 11, 2020, at 4:57 AM, Nikita Popov wrote: > On Tue, Mar 10, 2020 at 5:19 PM Côme Chilliet < > come.chill...@fusiondirectory.org> wrote: > > > Le mardi 10 mars 2020, 15:53:41 CET Nikita Popov a écrit : > > > Would __toString() return $token->text? I'm not strictly opposed to this, > >

Re: [PHP-DEV] Make sorting stable

2020-03-11 Thread Mike Schinkel
> On Mar 4, 2020, at 11:42 AM, Nikita Popov wrote: > > Hi internals, > > Sorting function in PHP currently do not guarantee stability, which means > that the result order of elements that compare equal is not defined. > > > > What do people think about this? Is there interest in making

Re: [PHP-DEV] [RFC] Attributes v2

2020-03-11 Thread Dan Ackroyd
On Wed, 11 Mar 2020 at 14:18, Mike Schinkel wrote: > if interfaces cannot enforce the requirements of the "contract" why have > interfaces? Because they are a useful tool, and cover a lot of people's use-cases. But most people who use doc block annotations currently don't seem to have a need

Re: [PHP-DEV] [RFC] Attributes v2

2020-03-11 Thread Mike Schinkel
> On Mar 10, 2020, at 5:03 PM, Benjamin Eberlei wrote: Thank you for answering again. On Tue, Mar 10, 2020 at 9:41 PM Mike Schinkel wrote: -Mike P. S. Did you see the question on interfaces? >>> No I missed it. Attributes work on interfaces, but they are not inherited >>> to

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

2020-03-11 Thread Ben Ramsey
> On Mar 10, 2020, at 23:56, Stanislav Malyshev wrote: > > Hi! > >> Bump. Anyone? >> >> If there are no objections, can someone go ahead and merge this? > > I merged it. Thanks, Stas! Cheers, Ben -- PHP Internals - PHP Runtime Development Mailing List To unsubscribe, visit:

Re: [PHP-DEV] Re: Literal / Taint checking

2020-03-11 Thread Craig Francis
On Mon, 9 Mar 2020 at 16:54, Rowan Tommins wrote: > [...] the way to get a more in-depth discussion going is to draft an RFC Thanks Rowan, I've created a Wiki account (craigfrancis), and I believe the next step is to ask for RFC karma? And is there is anyone who can help with the technical

Re: [PHP-DEV] Make sorting stable

2020-03-11 Thread Nikita Popov
On Wed, Mar 4, 2020 at 8:49 PM Larry Garfield wrote: > On Wed, Mar 4, 2020, at 12: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 > > >>

Re: [PHP-DEV] [RFC] Attributes v2

2020-03-11 Thread Alexandru Pătrănescu
Hi Benjamin, Two small issues/questions: 1. It is not allowed to use the same attribute name more than once on the same declaration and a compile error is thrown when this detected. Is there any reason for this? IMO, the attribute can represents something that can have multiple options. Like an

Re: [PHP-DEV] Make sorting stable

2020-03-11 Thread Nikita Popov
On Fri, Mar 6, 2020 at 12:58 AM Andrea Faulds wrote: > 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

Re: [PHP-DEV] exit() via exception

2020-03-11 Thread Nikita Popov
On Fri, Oct 11, 2019 at 4:11 PM Nikita Popov wrote: > On Fri, Oct 11, 2019 at 3:47 PM Marcio Almada > wrote: > >> Em sex, 11 de out de 2019 às 08:05, Nikita Popov >> escreveu: >> > >> > Hi, >> > >> >> Hello :) >> >> > Currently exit() is implemented using bailout and unclean shutdown, >> which

Re: [PHP-DEV] [VOTE] Object-based token_get_all() alternative

2020-03-11 Thread Nikita Popov
On Tue, Mar 10, 2020 at 5:19 PM Côme Chilliet < come.chill...@fusiondirectory.org> wrote: > Le mardi 10 mars 2020, 15:53:41 CET Nikita Popov a écrit : > > Would __toString() return $token->text? I'm not strictly opposed to this, > > but I'd be hard pressed to think of a situation where I would

Re: [PHP-DEV] Windows snapshot builds switching to debug

2020-03-11 Thread Christoph M. Becker
On 10.03.2020 at 13:59, Anatol Belski wrote: > I'd see not much value in switching to debug builds for the snapshots. > Currently the snapshots are public and are built with PGO. This makes > it easy for users to test any provided revision. Debug builds are > better suitable for the runtime

[PHP-DEV] Making all Traversables an Iterator or IteratorAggregate

2020-03-11 Thread Nikita Popov
Hi internals, Userland classes that implement Traversable must do so either through Iterator or IteratorAggregate. The same requirement does not exist for internal classes: They can implement the internal get_iterator mechanism, without exposing either the Iterator or IteratorAggregate APIs. This

Re: [PHP-DEV] Re: [RFC] Userspace operator overloading

2020-03-11 Thread Christoph M. Becker
On 11.03.2020 at 10:22, Nikita Popov wrote: > On Fri, Mar 6, 2020 at 9:17 AM Jan Böhmer wrote: > >> Am 02.03.2020 um 15:30 schrieb Nikita Popov: >> >>> On Thu, Feb 27, 2020 at 9:43 PM wrote: >>> If the operator handler function declares typehints (e.g. public static function

Re: [PHP-DEV] Re: [RFC] Userspace operator overloading

2020-03-11 Thread Nikita Popov
On Fri, Mar 6, 2020 at 9:17 AM Jan Böhmer wrote: > Am 02.03.2020 um 15:30 schrieb Nikita Popov: > > On Thu, Feb 27, 2020 at 9:43 PM wrote: > >> On 15/02/2020 22:05, jan.h.boeh...@gmx.de wrote: >> > Hi internals, >> > >> > based on the discussions here (https://externals.io/message/108300) and