Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-21 Thread Andreas Hennings
On Tue, 21 Dec 2021 at 23:20, Jordan LeDoux wrote: > > > > On Tue, Dec 21, 2021 at 5:47 AM Andreas Hennings wrote: >> >> I see the "Implied Operators" section. >> I assume this means that a new instance will be created, and stored on >> the same variable, _if_ the original operator is written in

Re: [PHP-DEV] What should we do with utf8_encode and utf8_decode?

2021-12-21 Thread Kris Craig
On Tue, Dec 21, 2021 at 3:21 PM Wade Rossmann wrote: > On Sun, Mar 21, 2021 at 9:52 AM Larry Garfield > wrote: > > > On Sun, Mar 21, 2021, at 9:18 AM, Rowan Tommins wrote: > > > Hi all, > > > > > > The functions utf8_encode and utf8_decode are historical oddities, > which > > > almost certainly

Re: [PHP-DEV] What should we do with utf8_encode and utf8_decode?

2021-12-21 Thread Wade Rossmann
On Sun, Mar 21, 2021 at 9:52 AM Larry Garfield wrote: > On Sun, Mar 21, 2021, at 9:18 AM, Rowan Tommins wrote: > > Hi all, > > > > The functions utf8_encode and utf8_decode are historical oddities, which > > almost certainly would not be accepted if proposed today: > > > > * Their names do not de

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-21 Thread Jordan LeDoux
On Tue, Dec 21, 2021 at 5:47 AM Andreas Hennings wrote: > I see the "Implied Operators" section. > I assume this means that a new instance will be created, and stored on > the same variable, _if_ the original operator is written in an > immutable way (which it should be)? > > E.g. > > $money = ne

Re: [PHP-DEV] header() allows arbitrary status codes

2021-12-21 Thread Ayesh Karunaratne
> > Hi all, > > a while ago it has been reported[1] that our header() function actually > allows arbitrary status codes, which may even overflow. Of course, that > makes no sense, since the status code is supposed to be a three digit > code. So this ticket has been followed up by a pull request[2

[PHP-DEV] header() allows arbitrary status codes

2021-12-21 Thread Christoph M. Becker
Hi all, a while ago it has been reported[1] that our header() function actually allows arbitrary status codes, which may even overflow. Of course, that makes no sense, since the status code is supposed to be a three digit code. So this ticket has been followed up by a pull request[2], and Jakub

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-21 Thread Johannes Schlüter
On Thu, 2021-12-16 at 20:15 +0100, Nikita Popov wrote: > My main question would be how this will affect 3rd party extensions, > which are currently using autoconf. Will they need to migrate to > cmake, or will we have to effectively maintain both build systems? We would have to keep our autoconf m

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-21 Thread Pierre Joye
On Tue, Dec 21, 2021, 5:24 AM Christoph M. Becker wrote: > On 20.12.2021 at 23:01, Horváth V. wrote: > > > On 2021. 12. 20. 17:19, Pierre Joye wrote: > > > >> We may switch to vcpkg distributions, [...], or the current autoconf > >> php js port works too. > > > > Could you elaborate on what you m

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-21 Thread Pierre Joye
On Tue, Dec 21, 2021, 5:02 AM Horváth V. wrote: > On 2021. 12. 20. 17:19, Pierre Joye wrote: > > We may switch to vcpkg distributions, [...], or the current autoconf > > php js port works too. > > Could you elaborate on what you mean by these? > > The reason why I prefer Conan here is because the

Re: [PHP-DEV] [VOTE] Add array_group function

2021-12-21 Thread Levi Morrison via internals
On Tue, Dec 21, 2021 at 1:48 AM Hassan Ahmed <7sno...@gmail.com> wrote: > > Hello all, > > I would like to start a voting phase for this RFC: Add array_group function > > > Regards, > > ~Hassan This RFC has mistakes in its opening Discussion

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-21 Thread Horváth V .
On 2021. 12. 21. 13:55, Christoph M. Becker wrote: vcpkg has a lot of these, but some are completely missing (e.g. libxpm), and some packages are even on older versions than we currently use for Windows builds. Good point, even Conan is missing some of those dependencies. Guess I'll have to pa

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-21 Thread Andreas Hennings
On Tue, 21 Dec 2021 at 02:57, Jordan LeDoux wrote: > > > > On Mon, Dec 20, 2021 at 4:43 PM Andreas Hennings wrote: >> >> > The exact position of where that trade-off is 'worth it' is going to >> > be different for different people. But one of the areas where PHP is >> > 'losing ground' to Python

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-21 Thread Andreas Hennings
On Tue, 21 Dec 2021 at 10:13, Rowan Tommins wrote: > > On 21/12/2021 00:43, Andreas Hennings wrote: > > I think the example in the RFC is interesting, but not ideal to > > advertise the RFC. > > The example is with native scalar types and build-in operator > > implementations. > > (I don't know h

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-21 Thread Christoph M. Becker
On 21.12.2021 at 13:37, Horváth V. wrote: > The point of CMake is that you don't have to care too much about the > system you are building the software on. The exact same CMake build > files will work on all platforms that CMake supports. There is no > "Windows support" specifically when you are w

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-21 Thread Horváth V .
The point of CMake is that you don't have to care too much about the system you are building the software on. The exact same CMake build files will work on all platforms that CMake supports. There is no "Windows support" specifically when you are working with CMake. In fact, I work on a Windows ma

Re: [PHP-DEV] [VOTE] Add array_group function

2021-12-21 Thread Hassan Ahmed
Hello Michał, thanks for your kind feedback. IMHO most of the array_* related functions can be achieved by a simple loop. and that's why it is a standard lib. it's your opinion after all and I really appreciate it. Thanks a lot. Regards, ~Hassan On Tue, Dec 21, 2021 at 11:43 AM Michał Marcin Brz

Re: [PHP-DEV] [VOTE] Add array_group function

2021-12-21 Thread Michał Marcin Brzuchalski
Hello Hassan, wt., 21 gru 2021 o 09:48 Hassan Ahmed <7sno...@gmail.com> napisał(a): > Hello all, > > I would like to start a voting phase for this RFC: Add array_group function > > > I voted "no" because I don't like populating standard lib

Re: [PHP-DEV] [RFC] User Defined Operator Overloads (v0.6)

2021-12-21 Thread Rowan Tommins
On 21/12/2021 00:43, Andreas Hennings wrote: I think the example in the RFC is interesting, but not ideal to advertise the RFC. The example is with native scalar types and build-in operator implementations. (I don't know how GMP works internally, but for an average user of PHP it does not make se

[PHP-DEV] [VOTE] Add array_group function

2021-12-21 Thread Hassan Ahmed
Hello all, I would like to start a voting phase for this RFC: Add array_group function Regards, ~Hassan