Re: [PHP-DEV] Property Hooks Discussion

2023-04-11 Thread Zoltán Fekete
> Ah, I see now what you meant, Robert. This already doesn't hold. > > class Foo { > public int $prop; > } > $foo = new Foo(); > $value = '42'; > $foo->prop = $value; > var_dump($value === $foo->prop); > // false I don’t know if this has been closed or discussed further in private but this ha

Re: [PHP-DEV] Property Hooks Discussion

2023-03-31 Thread Ilija Tovilo
On Fri, Mar 31, 2023 at 3:24 PM Larry Garfield wrote: >> In other words, will it be possible for this to no longer be true (I'm >> not sure it is always true now, fwiw): >> >> $x = $y = $z = 1; >> >> $x === $y && $y === $z; > That would mean the following as a side effect: > > $f = new Foo(); > $v

Re: [PHP-DEV] Property Hooks Discussion

2023-03-31 Thread Robert Landers
Thanks for your response Ilija and Larry, I totally missed the draft status and you resolved my burning questions anyway! It's a pretty exciting language feature (IMHO) and I wish you the best of luck! Cheers, Robert Landers Software Engineer Utrecht NL -- PHP Internals - PHP Runtime Developme

Re: [PHP-DEV] Property Hooks Discussion

2023-03-31 Thread Larry Garfield
On Fri, Mar 31, 2023, at 8:56 AM, Robert Landers wrote: > Hello, > > I couldn't find the thread about Property Hooks > (https://wiki.php.net/rfc/property-hooks) -- I think it got embedded > in various places? Or maybe my search-fu in gmail is failing me. > > Anyway, I was reading it carefully and I

Re: [PHP-DEV] Property Hooks Discussion

2023-03-31 Thread Rowan Tommins
On Fri, 31 Mar 2023 at 09:57, Robert Landers wrote: > Hello, > > I couldn't find the thread about Property Hooks > (https://wiki.php.net/rfc/property-hooks) -- I think it got embedded > in various places? Or maybe my search-fu in gmail is failing me. > The RFC is in "Draft" status rather than "