mirror of
https://github.com/php/php-src.git
synced 2024-11-27 03:44:07 +08:00
be7e819068
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===
|