[PHP-DEV] PHP 7.4.27 Released!

2021-12-17 Thread Derick Rethans
The PHP development team announces the immediate availability of PHP 7.4.27. This is a bug fix release, and the LAST active support release of the PHP 7.4 series. From now on, only security releases will be created for the PHP 7.4 branch. All PHP 7.4 users are encouraged to upgrade to this

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

2021-12-17 Thread Jordan LeDoux
On Fri, Dec 17, 2021 at 12:26 PM Matt Fonda wrote: > > Thanks for the info. I share Stas's unease with having many different > places we must look in order to understand what $foo * $bar actually > executes. I'm also uneasy with the requirement of union typing in order for > an operator to

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

2021-12-17 Thread Mel Dafert
Hello internals, >register_operator(*, function (Foo $lhs, Bar $rhs): Foo { ...}); >register_operator(*, function (Bar $lhs, Foo $rhs): Foo { ...}); >register_operator(*, function (int $lhs, Foo $rhs): int { ...}); > >But this just brings a new set of problems, including visibility issues >(i.e.

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

2021-12-17 Thread Matt Fonda
On Fri, Dec 17, 2021 at 10:37 AM Jordan LeDoux wrote: > On Fri, Dec 17, 2021 at 9:43 AM Matt Fonda wrote: > >> Hi Jordan, >> >> Thanks for the RFC. I have a couple questions: >> >> Suppose I have classes Foo and Bar, and I want to support the following >> operations: >> >> - Foo * Bar (returns

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

2021-12-17 Thread Jordan LeDoux
On Fri, Dec 17, 2021 at 10:36 AM Stanislav Malyshev wrote: > And that's one of the reasons I feel so uneasy with this. When reading > this code: $foo * $bar - how do I know which of the ways you took and > where should I look for the code that is responsible for it? When I see >

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

2021-12-17 Thread Jordan LeDoux
On Fri, Dec 17, 2021 at 9:43 AM Matt Fonda wrote: > Hi Jordan, > > Thanks for the RFC. I have a couple questions: > > Suppose I have classes Foo and Bar, and I want to support the following > operations: > > - Foo * Bar (returns Foo) > - Bar * Foo (returns Foo) > > If I understand correctly,

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

2021-12-17 Thread Stanislav Malyshev
Hi! On 12/17/21 9:43 AM, Matt Fonda wrote: Hi Jordan, Thanks for the RFC. I have a couple questions: Suppose I have classes Foo and Bar, and I want to support the following operations: - Foo * Bar (returns Foo) - Bar * Foo (returns Foo) If I understand correctly, there are three possible

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

2021-12-17 Thread Matt Fonda
Hi Jordan, Thanks for the RFC. I have a couple questions: Suppose I have classes Foo and Bar, and I want to support the following operations: - Foo * Bar (returns Foo) - Bar * Foo (returns Foo) If I understand correctly, there are three possible ways I could implement this: a) Implement the *

[PHP-DEV] PHP 8.1.1 Released

2021-12-17 Thread Patrick ALLAERT
-BEGIN PGP SIGNED MESSAGE- Hash: SHA512 The PHP development team announces the immediate availability of PHP 8.1.1. This is a bugfix release. All PHP 8.1 users are encouraged to upgrade to this version. For source downloads of PHP 8.1.1 please visit our downloads page. Windows binaries

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-17 Thread Kalle Sommer Nielsen
Hi Den fre. 17. dec. 2021 kl. 01.09 skrev Horváth V. : > Yes, gradually phasing the current build system out is the most > pragmatic choice, although it will incur some extra maintenance cost for > the time it's still in use, but it's better to do something sooner than > later. This will also

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-17 Thread Horváth V .
This is way too early to decide this. This is a decision to be made when we're actually ready to try publishing it for regular consumption (not for the people developing it). Sure. I wasn't expecting concrete answers, just letting people know that this ought to be considered as well. It may

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-17 Thread Levi Morrison via internals
On Fri, Dec 17, 2021 at 6:49 AM Horváth V. wrote: > > One thing I forgot to ask is what minimum CMake version should php-src > support in its build scripts? For reference, please take a look at > repology.org for the packaging status of CMake across a lot of software > distributions:

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-17 Thread James Titcumb
On Thu, 16 Dec 2021, 17:53 Horváth V., wrote: > > I'm writing to you to find out what the reception here is regarding the > idea of moving the PHP project to build using CMake. > I think this would be a great move overall. Would the CMake build chain be backported? I'm assuming not, which

Re: [PHP-DEV] Surveying interest regarding CMake

2021-12-17 Thread Horváth V .
One thing I forgot to ask is what minimum CMake version should php-src support in its build scripts? For reference, please take a look at repology.org for the packaging status of CMake across a lot of software distributions: https://repology.org/project/cmake/badges Please note that the lower