Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-30 Thread Rowan Collins
On 30 July 2017 20:21:01 BST, Stanislav Malyshev wrote: >Hi! > >> My point was that if we were considering a compatibility break >> anyway, we should look at separating out those common use cases into >> something higher level. > >I'm completely in agreement with you here,

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-30 Thread Stanislav Malyshev
Hi! > My point was that if we were considering a compatibility break > anyway, we should look at separating out those common use cases into > something higher level. I'm completely in agreement with you here, except for "compatibility break" part. The good news is that you do not need any

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-30 Thread Stanislav Malyshev
Hi! > This is true within the context of the current "shared nothing" > design of PHP. There has been talk - and indeed existing > implementations - of a more event-based system, where this state > would no longer be naturally global in any sense. But as I That's fine - but in that design, you

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-30 Thread Rowan Collins
On 29 July 2017 21:22:30 BST, Stanislav Malyshev wrote: >> On a slight tangent, I consider $_SERVER to be a broken pile of >> "we'll just shove this in here and hope for the best", and I will >> oppose any attempt to convert it into an object which doesn't >> reorganize its

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-30 Thread Rowan Collins
On 30 July 2017 01:18:56 BST, Stanislav Malyshev wrote: >Request context is a global state. It is a legit global state - >everything within the request is executed in the context of the >request. This is true within the context of the current "shared nothing" design of PHP.

RE: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-30 Thread Zeev Suraski
nals@lists.php.net> > Subject: Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something > about session_start...) > > Hi > > 2017-07-29 22:17 GMT+02:00 Stanislav Malyshev <smalys...@gmail.com>: > > I've seen scenarios where it is very useful. Sure, you can a

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-29 Thread li...@rhsoft.net
Am 30.07.2017 um 01:35 schrieb Kalle Sommer Nielsen: 2017-07-29 22:17 GMT+02:00 Stanislav Malyshev : I've seen scenarios where it is very useful. Sure, you can always build another layer of indirection and solve it this way, but it's just making people do more work for no

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-29 Thread Stanislav Malyshev
Hi! > Sure it seems useful, but I see it more as a hack if you are just > writing to superglobals anyway, if you need to change something you > should do that with your own logic instead. That's what I said - you can always add a layer of indirection. But why? What is so sacred in those

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-29 Thread Kalle Sommer Nielsen
Hi 2017-07-29 22:17 GMT+02:00 Stanislav Malyshev : > I've seen scenarios where it is very useful. Sure, you can always build > another layer of indirection and solve it this way, but it's just making > people do more work for no reason. I don't see any problem that would

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-29 Thread Stanislav Malyshev
Hi! > I for one thing it makes a lot of sense to make superglobals > read-only, writing to them seems more like a hack anyway and should be > avoided I've seen scenarios where it is very useful. Sure, you can always build another layer of indirection and solve it this way, but it's just making

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-29 Thread Stanislav Malyshev
Hi! > On a slight tangent, I consider $_SERVER to be a broken pile of > "we'll just shove this in here and hope for the best", and I will > oppose any attempt to convert it into an object which doesn't > reorganize its keys to be sane, documented, and as cross-platform as > the SAPI layer can

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-29 Thread Rowan Collins
On 29 July 2017 15:05:57 BST, Andrea Faulds wrote: >Hi Rowan, > >Rowan Collins wrote: >> On a slight tangent, I consider $_SERVER to be a broken pile of >"we'll just shove this in here and hope for the best", and I will >oppose any attempt to convert it into an object which doesn't

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-29 Thread Paul Jones
> On Jul 29, 2017, at 05:27, Dan Ackroyd wrote: > > Designing classes/interfaces to be correct the first time is a really > difficult thing to do, and then maintaining classes/interfaces is hard > as any change to a method is a BC break. Having done it several times

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-29 Thread Andrea Faulds
Hi Rowan, Rowan Collins wrote: On a slight tangent, I consider $_SERVER to be a broken pile of "we'll just shove this in here and hope for the best", and I will oppose any attempt to convert it into an object which doesn't reorganize its keys to be sane, documented, and as cross-platform as

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-29 Thread li...@rhsoft.net
h them previously :-) Are you advocating for read-only or leaving them read-write? I can't tell how comes? Weitergeleitete Nachricht Betreff: Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 Datum: Fri, 28 Jul 2017 18:42:16 +0200 Von: li...@rhsoft.net <li...@rhsoft.net> A

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-29 Thread Dan Ackroyd
On 28 July 2017 at 16:11, Sara Golemon wrote: > ftr; I'd vote in favor of several BC breaking things to do with autoglobals, among them: > >* Make them objects (though ArrayAccess based for less hostile BC breakage) Why objects? Although these are kind of just about related

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-29 Thread Thomas Hruska
On Fri, Jul 28, 2017 at 11:03 AM, li...@rhsoft.net wrote: make POST/GET/SERVER readonly - only when you refactor a 25 line code base as well as deplyed code which relies on the framework did the right thing with them previously :-) Are you advocating for read-only or

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-28 Thread Rowan Collins
Hi Sara, >>> On Fri, Jul 28, 2017 at 5:45 PM, Sara Golemon >wrote: ftr; I'd vote in favor of several BC breaking things to do with autoglobals, among them: * Make them objects (though ArrayAccess based for less hostile BC breakage) * Make most of

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-28 Thread Johannes Schlüter
On Fr, 2017-07-28 at 11:11 -0400, Sara Golemon wrote: > I'm sure there will be many strong opinions on this, but let's move > this to a new thread. :D Language-wise, I think, refactoring that system would be good. I guess a refactoring is a register_globals-like project, which took 10 years from

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-28 Thread Rick Widmer
On 7/28/2017 10:42 AM, li...@rhsoft.net wrote: Am 28.07.2017 um 18:21 schrieb Kalle Sommer Nielsen: 2017-07-28 17:11 GMT+02:00 Sara Golemon : I'm sure there will be many strong opinions on this, but let's move this to a new thread. :D 1. This would be an 8.0 change as it

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-28 Thread li...@rhsoft.net
Am 28.07.2017 um 18:21 schrieb Kalle Sommer Nielsen: 2017-07-28 17:11 GMT+02:00 Sara Golemon : I'm sure there will be many strong opinions on this, but let's move this to a new thread. :D 1. This would be an 8.0 change as it does represent a significant BC change. 2. We can

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8

2017-07-28 Thread Paul Jones
> On Jul 28, 2017, at 10:11, Sara Golemon wrote: > > 3. I'm definitely not decided on what I'd like from default session > behavior. An error isn't out of the question, for sure. If this kind of big change is being contemplated, I would very much be in favor of decoupling the

Re: [PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-28 Thread Kalle Sommer Nielsen
2017-07-28 17:11 GMT+02:00 Sara Golemon : > I'm sure there will be many strong opinions on this, but let's move > this to a new thread. :D > > 1. This would be an 8.0 change as it does represent a significant BC change. > 2. We can discuss the possibility of INI options or other

[PHP-DEV] Changes to SuperGlobals for PHP 8 (was: something about session_start...)

2017-07-28 Thread Sara Golemon
On Fri, Jul 28, 2017 at 11:03 AM, li...@rhsoft.net wrote: >> On Fri, Jul 28, 2017 at 5:45 PM, Sara Golemon wrote: >>> ftr; I'd vote in favor of several BC breaking things to do with >>> autoglobals, among them: >>> >>> * Make them objects (though ArrayAccess