cf41a82f42
A prior diff added property error-reporting code that was looking up the property in the PreClass. However, a PreClass doesn't contain the inherited properties, so HHVM was crashing when trying to raise an accessibility error on an inherited property. This diff changes the code to lookup the property in the actual Class instead.
15 linhas
120 B
PHP
15 linhas
120 B
PHP
<?php
|
|
|
|
class B {
|
|
protected $p;
|
|
}
|
|
|
|
class C extends B {}
|
|
|
|
function main() {
|
|
$o = new C;
|
|
var_dump($o->p);
|
|
}
|
|
|
|
main();
|