[php-src] Issue #9121: Regression in PHP 8.2

From: Date: Sun, 24 Jul 2022 20:10:16 +0000
Subject: [php-src] Issue #9121: Regression in PHP 8.2
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-242007@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/9121 Author: kylekatarnls ### Description The following code: ```php <?php $d = (new ReflectionClass(DateTime::class))->newInstanceWithoutConstructor(); $d->date = '1990-01-17 10:28:07'; $d->timezone_type = 3; $d->timezone = 'US/Pacific'; ``` Resulted in this output: ``` ErrorException: Creation of dynamic property DateTime::$date is deprecated ``` But before PHP 8.2 we had $d being a usable DateTime object ### PHP Version PHP 8U ### Operating System _No response_

« previous php.bugs (#242007) next »