Re: [PHP-DEV] SSL stream context 'local_pk' issue?

2020-01-07 Thread Kosit Supanyo
Hi Thomas I'm sad to hear that. I don't know much about security but I've implemented a simple PHP TLS web server (only for dynamic contents, static contents still use nginx) for my project and have been tested with SSL Labs tool, it gave me A+ score and reported no security issues (except for ses

Re: [PHP-DEV] Initializing constants once, with code?

2020-01-07 Thread Rowan Tommins
On Tue, 7 Jan 2020 at 01:13, Mike Schinkel wrote: > At least two come to mind: > > 1. Guard clauses for code you only want to run in one environment and not > another. > 2. Common code that is used by different websites. > It seems to me that there are two different concerns there: - An enumer

[PHP-DEV] [RFC] Variable syntax tweaks

2020-01-07 Thread Nikita Popov
Hi internals, I'd like to propose a small RFC, which addresses a few minor issues that have not been handled by the original "uniform variable syntax" RFC: https://wiki.php.net/rfc/variable_syntax_tweaks This is all about edge cases of edge cases, of course. I think the only part here that is no

Re: [PHP-DEV] [RFC] Variable syntax tweaks

2020-01-07 Thread Rowan Tommins
On Tue, 7 Jan 2020 at 10:23, Nikita Popov wrote: > I'd like to propose a small RFC, which addresses a few minor issues that > have not been handled by the original "uniform variable syntax" RFC: > > https://wiki.php.net/rfc/variable_syntax_tweaks Hi Nikita, Thanks for this, I'm definitely a

Re: [PHP-DEV] [RFC] Variable syntax tweaks

2020-01-07 Thread Nikita Popov
On Tue, Jan 7, 2020 at 11:43 AM Rowan Tommins wrote: > On Tue, 7 Jan 2020 at 10:23, Nikita Popov wrote: > > > I'd like to propose a small RFC, which addresses a few minor issues that > > have not been handled by the original "uniform variable syntax" RFC: > > > > https://wiki.php.net/rfc/variabl

[PHP-DEV] Adding TypeError and ValueError to count() function

2020-01-07 Thread George Peter Banyard
Greetings internals, I would like your input on adding TypeError and ValueError exceptions to the count() function in respect to the Consistent type errors for internal functions RFC [1], the initial PR [2] was denied as null was not accepted as a value when it seems to be prevalent to use count()

Re: [PHP-DEV] Initializing constants once, with code?

2020-01-07 Thread Mike Schinkel
> On Jan 7, 2020, at 5:15 AM, Rowan Tommins wrote: > > It seems to me that there are two different concerns there: > > So at its simplest, I would write something like this: > > class Environments { > const PRODUCTION = 4; > const STAGING = 3; > const TESTING = 2; > const DEVELOPMENT =