Arquivos
hhvm/hphp/test/quick/fail_self.php
T
mwilliams fdc153980f Fix typecheck crashes
We didn't fill in the m_namedEntity field for hiphop-only type
hints in non-hiphop mode, resulting in crashes when we tried to
use them.

Regardless of mode, we didn't check self or parent before
checking a non-object parameter, resulting in asserts in
dbg builds and seg-faults int opt builds.
2013-06-25 12:22:56 -07:00

8 linhas
85 B
PHP

<?php
class X {
function test(self $s) {
var_dump($s);
}
}
X::test("hello");