php-src/tests/classes/inheritance_006.phpt
Dmitry Stogov 72c3ededed Change the order of properties used for var_dump(), serialize(), comparison, etc.
Now properties are ordered according to their layout in zend_object structure.
2021-03-01 13:29:49 +03:00

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
}