Fix HHBBC method resolution for non existent base methods
commit519ee4e81b4e0e0cfd82542e4b08461153da00e6
authorOguz Ulgen <oulgen@fb.com>
Mon, 8 Aug 2022 16:26:40 +0000 (8 09:26 -0700)
committerFacebook GitHub Bot <facebook-github-bot@users.noreply.github.com>
Mon, 8 Aug 2022 16:26:40 +0000 (8 09:26 -0700)
tree4c9bf71427bbbd49b83332eb42da2505d5aba9c9
parentc8648b075ee1673756911b00344db6b1e3ab9461
Fix HHBBC method resolution for non existent base methods

Summary: Prior to this diff, the test case added on this diff ends up having HHBBC resolve the `parent::foo` into `C::foo` whereas it is meant to be `A::foo`. This eventually results in infinite recursion.

Reviewed By: mdko

Differential Revision: D38431071

fbshipit-source-id: e832347862557cbc898143ed2f93ab48b09544f1
hphp/hhbbc/index.cpp
hphp/test/slow/hhbbc/non-existent-base-method.php [new file with mode: 0644]
hphp/test/slow/hhbbc/non-existent-base-method.php.expectf [new file with mode: 0644]