[php-src] Issue #7786: PHP 8.2: unexpected deprecation for dynamic property set via magic method

From: Date: Fri, 17 Dec 2021 17:30:10 +0000
Subject: [php-src] Issue #7786: PHP 8.2: unexpected deprecation for dynamic property set via magic method
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-238464@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/7786 Comment Author: iluuu1994 Honestly, I didn't even know the engine protects you from infinite recursion in this case. The current behavior seems reasonable to me. I'm assuming (but maybe @nikic can correct me on this one) the RFC refers to the fact that triggering __set through undefined properties won't also emit a "Creation of dynamic property" deprecation. As properties are supposed to be dynamic here that seems like the perfect use case for #[AllowDynamicProperties].

« previous php.bugs (#238464) next »