[php-src] Issue #13835: get_class_vars contains a break change

From: Date: Fri, 29 Mar 2024 11:35:56 +0000
Subject: [php-src] Issue #13835: get_class_vars contains a break change
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-246671@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/13835 Author: eerison ### Description The following code: ```php <?php declare(strict_types=1); class ExampleClass { public static bool $_strict = true; } ExampleClass::$_strict = false; $example = get_class_vars(ExampleClass::class); var_dump($example); ``` Resulted in this output: ``` array(1) { ["_strict"]=> bool(true) } ``` But I expected this output instead: ``` array(1) { ["_strict"]=> bool(false) } ``` ### PHP Version PHP 8.1+ ### Operating System _No response_

« previous php.bugs (#246671) next »