mirror of
https://github.com/php/php-src.git
synced 2024-12-16 05:15:03 +08:00
72c3ededed
Now properties are ordered according to their layout in zend_object structure.
25 lines
261 B
PHP
25 lines
261 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) {
|
|
["c":"A":private]=>
|
|
NULL
|
|
["c":"B":private]=>
|
|
NULL
|
|
}
|