Re: [PHP-DEV] Static class

2024-06-16 Thread Rob Landers
On Sun, Jun 16, 2024, at 14:13, Rowan Tommins [IMSoP] wrote: > > > On 15 June 2024 18:39:20 BST, Valentin Udaltsov > wrote: > > >PHP does not have internal/private functions. > >Very often I use functions for really simple things like `array_flatten` > >(and register them via

Re: [PHP-DEV] Static class

2024-06-16 Thread Rob Landers
On Sun, Jun 16, 2024, at 11:17, Bilge wrote: > Let's start getting specific so we can make some progress. > > The goals of this RFC are fairly straightforward: > • Introduce the `static` keyword at the class level to preclude the need to > create a private constructor. That is, `__construct`

Re: [PHP-DEV] Static class

2024-06-16 Thread Rob Landers
On Sun, Jun 16, 2024, at 10:33, Rowan Tommins [IMSoP] wrote: > > > On 16 June 2024 03:00:39 BST, "Marco Aurélio Deleu" > wrote: > >If you appoint a different jury to try a 20 year old case, the decision of > >the previous jury doesn't have any more weight than any other evidence on > >its

Re: [PHP-DEV] Static class

2024-06-15 Thread Rob Landers
On Sat, Jun 15, 2024, at 16:40, Bilge wrote: > On 15/06/2024 14:53, Rowan Tommins [IMSoP] wrote: > > On 15/06/2024 12:16, Bilge wrote: > >> > >> I want to introduce the `static` keyword at the class declaration > >> level. That is, the following would be valid: `static class Foo {}`. > > > > >

Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2

2024-06-11 Thread Rob Landers
On Tue, Jun 11, 2024, at 15:36, Larry Garfield wrote: > On Tue, Jun 11, 2024, at 6:47 AM, Rob Landers wrote: > > > I’m also not a fan of the prefix style, but for different reasons. My > > main reason is that it increases the minimum line-length, potentially > > forcing

Re: [PHP-DEV] [RFC] Asymmetric Visibility, v2

2024-06-11 Thread Rob Landers
On Mon, Jun 10, 2024, at 19:51, Rodrigo Vieira wrote: > I didn't like the `Prefix-style` syntax. I prefer the `Hook-embedded-style` > syntax. First let's look at the counterpoints of the `Prefix-style` syntax: > > ## 1) "`Prefix-style` is more visually scannable" > > The set visibility is 10

Re: [PHP-DEV] RFC proposal : "new" keyword shorthand

2024-06-07 Thread Rob Landers
On Fri, Jun 7, 2024, at 21:02, Andreas Hennings wrote: > On Fri, 7 Jun 2024 at 20:31, Larry Garfield wrote: > > > > On Fri, Jun 7, 2024, at 5:56 PM, ericm...@php.net wrote: > > > > >> Instead of ~ (which reminds me of the pendulum of symbols to written to > > >> symbols and back again every

Re: [PHP-DEV] RFC proposal : "new" keyword shorthand

2024-06-07 Thread Rob Landers
On Fri, Jun 7, 2024, at 18:03, Benoît Condaminet wrote: > Hello, > > Following the RFC process, I'm sending this to propose a PHP change. More > precisely a new zend language token. > > This is somehow linked to the recently accepted RFC called "new > MyClass()->method() without

Re: [PHP-DEV] Subject Prefixes

2024-05-24 Thread Rob Landers
; On Thu, 23 May 2024, 16:28 Rob Landers, wrote: >> __ >> On Thu, May 23, 2024, at 16:50, Derick Rethans wrote: >>> Hi! >>> >>> I've noticed that lately, people are adding a [Discussion] prefix to new >>> threads to this list. That seems rather su

Re: [PHP-DEV] Subject Prefixes

2024-05-23 Thread Rob Landers
On Thu, May 23, 2024, at 16:50, Derick Rethans wrote: > Hi! > > I've noticed that lately, people are adding a [Discussion] prefix to new > threads to this list. That seems rather superfluous, as this is a > *discussion* mailing list. > > RFCs require us to use [RFC] and [Vote] to stand out,

Re: [PHP-DEV] Switching max_execution_time from CPU time to wall-clock time and from SIGPROF to SIGALRM

2024-05-21 Thread Rob Landers
On Tue, May 21, 2024, at 14:39, Arnaud Le Blanc wrote: > Hi Robert, > > > This sounds like a bug with Mac vs. a PHP issue. > > This is what I believe as well. FWIW I was able to reproduce the issue > outside of PHP [2]. I've reported the bug to Apple, but I don't expect > it to be fixed

Re: [PHP-DEV] Requiring GPG Commit Signing

2024-04-03 Thread Rob Landers
On Tue, Apr 2, 2024, at 21:40, Rowan Tommins [IMSoP] wrote: > On 02/04/2024 20:02, Ilija Tovilo wrote: >> But, does it matter? I'm not sure we look at some commits closer than >> others, based on its author. It's true that it might be easier to >> identify malicious commits if they all come from

Re: [PHP-DEV] [RFC][Concept] Data classes (a.k.a. structs)

2024-04-02 Thread Rob Landers
On Tue, Apr 2, 2024, at 20:51, Bruce Weirdan wrote: > On Tue, Apr 2, 2024 at 8:05 PM Ilija Tovilo wrote: > > > Equality for data objects is based on data, rather than the object > > handle. > > I believe equality should always consider the type of the object. > > ```php > new

Re: [PHP-DEV] Re: [pdo_dblib] Correct TDS protocol version

2024-03-12 Thread Rob Landers
On Tue, Mar 12, 2024, at 17:53, Saki Takamachi wrote: > Hi, > > I posted this just when the mailing list was having some trouble, so I'll add > a reply just in case. > > Regards. > > Saki Instead of creating a BC break (which will probably affect older, less maintained libraries the most),

Re: [PHP-DEV] [Pre-RFC] Improve language coherence for the behaviour of offsets and containers

2024-03-12 Thread Rob Landers
On Tue, Mar 12, 2024, at 02:36, Gina P. Banyard wrote: > On Monday, 11 March 2024 at 16:11, Larry Garfield > wrote: > > > > > Woof. That's my kind of RFC. :-) The extensive background helps a lot, > > thank you. > > > > I am generally in favor of this, and have wanted more fine-grained >

Re: [PHP-DEV] [Pre-RFC] Improve language coherence for the behaviour of offsets and containers

2024-03-11 Thread Rob Landers
On Mon, Mar 11, 2024, at 13:52, Gina P. Banyard wrote: > Hello internals, > > I would like to get some initial feedback on an RFC I've been working on for > the last 5–6 months. > The RFC attempts to explain, and most importantly, improve the semantics > around $container[$offset] as PHP is

Re: [PHP-DEV] [RFC] [Discussion] Deprecate GET/POST sessions

2024-03-03 Thread Rob Landers
On Sat, Mar 2, 2024, at 22:10, Kamil Tekiela wrote: > Hi Internals, > > I would like to start a discussion on a new RFC > https://wiki.php.net/rfc/deprecate-get-post-sessions > > Please let me know whether the idea is clear and the RFC is understandable. > > In particular, I am looking for any

Re: [PHP-DEV] [RFC[ Property accessor hooks, take 2

2024-02-27 Thread Rob Landers
On Tue, Feb 27, 2024, at 17:16, Larry Garfield wrote: > On Tue, Feb 27, 2024, at 10:01 AM, Frederik Bosch wrote: > > > Hi Rowan, > > > > Our discussion sums up the pros and cons. Whether yield is > > complicated/confusing or not, is maybe personal. The same applies to > > getting $this->prop

Re: [PHP-DEV] [RFC[ Property accessor hooks, take 2

2024-02-26 Thread Rob Landers
On Tue, Feb 27, 2024, at 00:11, Frederik Bosch wrote: > Hi Rowan, > > On 26-02-2024 23:46, Rowan Tommins [IMSoP] wrote: >> On 26/02/2024 20:21, Frederik Bosch wrote: >>> I do note that $this->propName might suggest that the backing value is >>> accessible from other locations than only the

Re: [PHP-DEV] is this thing on?

2024-02-26 Thread Rob Landers
On Mon, Feb 26, 2024, at 19:01, Rowan Tommins wrote: > On 26/02/2024 16:14, Rob Landers wrote: > > There wasn’t any mention about issues FROM Gmail TO the list. I sent > > this email because it didn’t seem like ANYONE was aware of the issue > > (otherwise someone would

Re: [PHP-DEV] is this thing on?

2024-02-26 Thread Rob Landers
On Mon, Feb 26, 2024, at 12:03, Rowan Tommins [IMSoP] wrote: > On Sun, 25 Feb 2024, at 20:02, Rob Landers wrote: > > Before I get to the meat of this email, first of all, IMHO, anyone should > > be able to email the list, even if they are not a > > member of the list. I'v

[PHP-DEV] is this thing on?

2024-02-25 Thread Rob Landers
Hello internals, from an alternate email address that hopefully works... Before I get to the meat of this email, first of all, IMHO, anyone should be able to email the list, even if they are not a member of the list. I've had to email ubuntu lists about bugs before and I really have no desire