mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
In PHP 7.3 shadow properties are no longer duplicated. Make sure we only release them if the property was defined on the parent class, which means that it changed from private->shadow, which is where duplication does happen.
21 lines
225 B
PHP
21 lines
225 B
PHP
--TEST--
|
|
Bug #77922: Double release of doc comment on inherited shadow property
|
|
--FILE--
|
|
<?php
|
|
|
|
class A {
|
|
/** Foo */
|
|
private $prop;
|
|
}
|
|
|
|
class B extends A {
|
|
}
|
|
|
|
class C extends B {
|
|
}
|
|
|
|
?>
|
|
===DONE===
|
|
--EXPECT--
|
|
===DONE===
|