At the time of class registration, the PHP file is not loaded, so there is no way to tell whether the parent classes would match. hphp_class is NULL in both ret and parent_ce.