mirror of
https://github.com/php/php-src.git
synced 2025-01-06 02:43:34 +08:00
20 lines
279 B
Plaintext
20 lines
279 B
Plaintext
|
--TEST--
|
||
|
GH-12468: Double-free of doc_comment when overriding static property via trait
|
||
|
--FILE--
|
||
|
<?php
|
||
|
trait T {
|
||
|
/** some doc */
|
||
|
static protected $a = 0;
|
||
|
}
|
||
|
class A {
|
||
|
/** some doc */
|
||
|
static protected $a = 0;
|
||
|
}
|
||
|
class B extends A {
|
||
|
use T;
|
||
|
}
|
||
|
?>
|
||
|
===DONE===
|
||
|
--EXPECT--
|
||
|
===DONE===
|