mirror of
https://github.com/php/php-src.git
synced 2025-01-10 21:14:37 +08:00
24 lines
274 B
PHP
24 lines
274 B
PHP
--TEST--
|
|
Private property inheritance check
|
|
--FILE--
|
|
<?php
|
|
Class A {
|
|
private $c;
|
|
}
|
|
|
|
Class B extends A {
|
|
private $c;
|
|
}
|
|
|
|
Class C extends B {
|
|
}
|
|
|
|
var_dump(new C);
|
|
?>
|
|
--EXPECTF--
|
|
object(C)#%d (2) {
|
|
[%u|b%"c":%u|b%"B":private]=>
|
|
NULL
|
|
[%u|b%"c":%u|b%"A":private]=>
|
|
NULL
|
|
}
|