Re: [PHP-DEV] session_start() should not reset $_SESSIOn if it's not empty

2017-07-28 Thread li...@rhsoft.net
Am 28.07.2017 um 16:48 schrieb Andrey Andreev: Hi, 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 them r

Re: [PHP-DEV] session_start() should not reset $_SESSIOn if it's not empty

2017-07-28 Thread Andrey Andreev
Hi, 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 them read-only (offsetGet(), but no offsetSet) >

Re: [PHP-DEV] session_start() should not reset $_SESSIOn if it's not empty

2017-07-28 Thread Sara Golemon
On Fri, Jul 28, 2017 at 10:11 AM, Rowan Collins wrote: > On 28 July 2017 14:37:10 BST, "li...@rhsoft.net" wrote: >>(Arguably, all the other superglobals should be read only for the same >>reason, but that would be a huge break now.) >> >>make them readonly would break my whole codebase > > Yes, I

Re: [PHP-DEV] session_start() should not reset $_SESSIOn if it's not empty

2017-07-28 Thread Rowan Collins
On 28 July 2017 14:37:10 BST, "li...@rhsoft.net" wrote: >(Arguably, all the other superglobals should be read only for the same >reason, but that would be a huge break now.) > >make them readonly would break my whole codebase Yes, I only meant that as an absolutely hypothetical "if I had a time

Re: [PHP-DEV] session_start() should not reset $_SESSIOn if it's not empty

2017-07-28 Thread li...@rhsoft.net
Am 28.07.2017 um 14:48 schrieb Rowan Collins: On 27 July 2017 18:03:23 BST, "li...@rhsoft.net" wrote: if that could work in the way that session_start() keeps the current state of $_SESSION if not empty it would be possible to put the APCU-Read and if exit($apcu_content); before session_start

Re: [PHP-DEV] session_start() should not reset $_SESSIOn if it's not empty

2017-07-28 Thread Rowan Collins
On 27 July 2017 18:03:23 BST, "li...@rhsoft.net" wrote: >if that could work in the way that session_start() keeps the current >state of $_SESSION if not empty it would be possible to put the >APCU-Read and if exit($apcu_content); before session_start() which >would >gain another 30% performance

[PHP-DEV] session_start() should not reset $_SESSIOn if it's not empty

2017-07-27 Thread li...@rhsoft.net
currently i try to optimize our system so that the landing-page if it does not contain forms and when no user is logged in could be cached with APCu which works fine so far there is still a early session_start(); and while delay that would be probably possible like it's happening currently wit