[php-src] Issue #20177: Assertion failure in zend_check_property_access due to static and instance property name conflict across inheritance
(zend_object_handlers.c)

From: Date: Wed, 15 Oct 2025 08:44:23 +0000
Subject: [php-src] Issue #20177: Assertion failure in zend_check_property_access due to static and instance property name conflict across inheritance
(zend_object_handlers.c)
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-251066@lists.php.net to get a copy of this message
Issue: https://github.com/php/php-src/issues/20177 Author: vi3tL0u1s ### Description The following code: ```php <?php class a { private static $prop1; private static $prop2; public function __construct() { $a = get_object_vars($this); $this->prop1 = 1; $this->prop2 = 2; } } class c extends a { public $prop1; protected $prop2; } $c = new c; ?> ``` Resulted in this output: ``` php: /path/to/php-src/Zend/zend_object_handlers.c:569: zend_check_property_access: Assertion `property_info->flags & (1 << 1)' failed. Aborted ``` Commit: ``` e2da92b15c7 ``` Configurations: ```bash CC="gcc" CXX="g++" CFLAGS="-fsanitize=address -g -O0" CXXFLAGS="-fsanitize=address -g -O0" ./configure --enable-debug --enable-address-sanitizer --disable-shared --with-pic ``` ### PHP Version ```plain PHP 8.6.0-dev (cli) (built: Oct 15 2025 13:52:11) (NTS DEBUG) Copyright (c) The PHP Group Zend Engine v4.6.0-dev, Copyright (c) Zend Technologies with Zend OPcache v8.6.0-dev, Copyright (c), by Zend Technologies ``` ### Operating System Ubuntu 22.04

« previous php.bugs (#251066) next »