hhvm
hhvm copied to clipboard
function get_parent_class() is not considering the spl_autoloader
consider the following below in hhvm:
<php
// parent_file.php
class B {}
class C extends B {}
now the include child file with the autoloader
<php
// child_file.php
spl_autoload_register(function ($class) {
// in hhvm, this will not get executed
include 'parent_file.php';
});
var_dump(get_parent_class('C'));
outputs: hhvm
$> hhvm child_file.php
$> bool(false)
php
$> php child_file.php
$> string(1) "B"
I noticed that the get_parent_class() did NOT even look at the spl_autoloader
my build (hhvm-nightly):
HipHop VM 2.5.0-dev+2014.03.18 (rel)
Compiler: heads/master-0-gfff3c65e32e78379afcd4f5cbe6b7c751c28aa63
Repo schema: bf73ed84316f2eb2bc99e447815db483538826e8
``
Thanks for reporting this. Feel free to submit a PR if you (or someone else reading this) gets to this before we do.
Closed by 90c59276e85bdcb6b3d270f1fd8fff29afdf6e1c