Description
The following code:
<?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:
Configurations:
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
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