[PHP-DEV] Re: [RFC] [Discussion] Readonly Classes

2022-04-24 Thread Máté Kocsis
Hi Internals, As there's not much discussion, I will start voting on Wednesday. Cheers, Máté

Re: [PHP-DEV] Change the values of the LOCK_* constants

2022-04-24 Thread Nikita Popov
On Sun, Apr 24, 2022 at 12:14 PM Ilija Tovilo wrote: > Hi everyone > > The issue was raised that PHPs LOCK_* constants don't match the Unix > LOCK_* constants. > https://github.com/php/php-src/pull/8429 > > // Unix > #define LOCK_SH 1 > #define LOCK_EX 2 > #define LOCK_NB 4 > #define LOCK_UN 8 >

Re: [PHP-DEV] Discussion before submission of array_transpose() RFC

2022-04-24 Thread Marco Pivetta
Hey, I find it interesting that you linked https://github.com/josefernandotrindade/array_transpose/blob/master/transpose.php Wouldn't it be better to take that, brush it up (with some tests and benchmarks), and release it as a packagist library? Alternatively, adding it to a high quality library

Re: [PHP-DEV] Discussion before submission of array_transpose() RFC

2022-04-24 Thread Rowan Tommins
On 23/04/2022 23:42, mickmackusa wrote: Ideally, PHP should have a native transposing function to put developers out of their misery -- much like array_key_last() did. I think a better comparison would be array_column - https://wiki.php.net/rfc/array_column One interesting thing that Ben Ram

[PHP-DEV] Re: Discussion before submission of array_transpose() RFC

2022-04-24 Thread Christoph M. Becker
On 24.04.2022 at 00:42, mickmackusa wrote: > p.s. I've been told that I'll need a sprinkling of karma if I am going > to submit an RFC, so please shout me some of that. Did you already register as a new Wiki user[1]? If so, what's the username? [1] -- Christ

[PHP-DEV] Change the values of the LOCK_* constants

2022-04-24 Thread Ilija Tovilo
Hi everyone The issue was raised that PHPs LOCK_* constants don't match the Unix LOCK_* constants. https://github.com/php/php-src/pull/8429 // Unix #define LOCK_SH 1 #define LOCK_EX 2 #define LOCK_NB 4 #define LOCK_UN 8 // PHP #define PHP_LOCK_SH 1 #define PHP_LOCK_EX 2 #define PHP_LOCK_UN 3 #de