fdc153980f
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.
8 linhas
85 B
PHP
8 linhas
85 B
PHP
<?php
|
|
class X {
|
|
function test(self $s) {
|
|
var_dump($s);
|
|
}
|
|
}
|
|
X::test("hello");
|