PHP property hooks are great until they are not.
It fathoms me how this big oversight got past stable.
#PHP #Bug #Programming #Software #SoftwareDevelopment #WebDevelopment #WebDev #PHP8 #PHP84 #Error
PHP property hooks are great until they are not.
It fathoms me how this big oversight got past stable.
#PHP #Bug #Programming #Software #SoftwareDevelopment #WebDevelopment #WebDev #PHP8 #PHP84 #Error
.:\dGh/:.
in reply to .:\dGh/:. • • •Let's see what the PHP gods say about that "bug"
github.com/php/php-src/issues/…
#PHP #Programming #SoftwareDevelopment #Development #Coding #Code #Software #WebDevelopment #WebDev #Bug #GitHub #Git
PHP 8.4: Virtual Property with `set` returning a value stores the value · Issue #18341 · php/php-src
GitHubLarry Garfield
in reply to .:\dGh/:. • • •You're writing to 2 different properties from the hook. The code is doing exactly what the rfc said it should, explicitly. Virtual properties are incompatible with the short-set syntax.
There is no bug here. Perhaps unexpected behavior, but the behavior is correct according to what the rfc said it should do.
.:\dGh/:.
in reply to Larry Garfield • • •