Re: [PHP-DEV] Optional interfaces

2024-11-15 Thread Marco Aurélio Deleu
> On 15 Nov 2024, at 20:42, Rob Landers wrote: > >  >> On Sat, Nov 16, 2024, at 00:34, Juris Evertovskis wrote: >> Hey all, >> >> >> >> If you try to implement an interface that does not exist, you get the >> ‘Interface “%s” not found’ error. Usually that’s useful as it points to a >> cod

Re: [PHP-DEV] Optional interfaces

2024-11-15 Thread Rob Landers
On Sat, Nov 16, 2024, at 00:34, Juris Evertovskis wrote: > Hey all, > > If you try to implement an interface that does not exist, you get the > ‘Interface “%s” not found’ error. Usually that’s useful as it points to a > code error. > > However, sometimes we want our code to be compatible with

[PHP-DEV] Optional interfaces

2024-11-15 Thread Juris Evertovskis
Hey all, If you try to implement an interface that does not exist, you get the 'Interface "%s" not found' error. Usually that's useful as it points to a code error. However, sometimes we want our code to be compatible with an optional library. For example, my Expression class might be compa

Re: [PHP-DEV] A new fuzz testing tool for PHP

2024-11-15 Thread Niels Dossche
On 15/11/2024 14:20, Yuancheng Jiang wrote: > Hi all, > > > I have been submitting hundreds of bugs (see  > https://github.com/php/php-src/issues/created_by/YuanchengJiang > ) during the > past months and I first thank all the dev

Re: [PHP-DEV] Make Closure covariant to callable

2024-11-15 Thread Levi Morrison
> > There are some weird cases with `callable` which is why they aren't > > allowed as a property type. I don't remember all the edges, but if we > > are sure that we cannot hit those with simple co-/contra-variance, > > then I don't think this needs an RFC and we can just merge the PR. > > The rea

Re: [PHP-DEV] A new fuzz testing tool for PHP

2024-11-15 Thread Daniil Gentili
Hi Yuancheng, Awesome! I noticed the impressive number of opened issues, and given your background I guessed you were working on some new fuzzer. I’ve been thinking that the fuzzing corpus of this new fuzzer (and of the existing oss-fuzz fuzzer SAPI, currently being ran by Google) may be improve

[PHP-DEV] A new fuzz testing tool for PHP

2024-11-15 Thread Yuancheng Jiang
Hi all, I have been submitting hundreds of bugs (see https://github.com/php/php-src/issues/created_by/YuanchengJiang) during the past months and I first thank all the developers who take time to fix these issues to make PHP better. I am thrilled to introduce one fully automated fuzz testing to

Re: [PHP-DEV] [Discussion] Make objects unpackable by default

2024-11-15 Thread MrMeshok
I absolutely agree that unpacking objects to functions is a bad idea, my use case for this is different. Take for example that you have API endpoint that returns user balance ```php readonly class Balance { public function __construct( public float $debt, public float $credit,