Arquivos
hhvm/hphp/test/vm/prop-access-error1.php
T
ottoni cf41a82f42 Fix bug looking up properties in a PreClass
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.
2013-03-08 17:52:30 -08:00

15 linhas
120 B
PHP

<?php
class B {
protected $p;
}
class C extends B {}
function main() {
$o = new C;
var_dump($o->p);
}
main();